google-cloud-pubsub 1.0.2 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/AUTHENTICATION.md +16 -54
 - data/CHANGELOG.md +464 -0
 - data/CONTRIBUTING.md +328 -116
 - data/EMULATOR.md +1 -1
 - data/LOGGING.md +94 -2
 - data/OVERVIEW.md +121 -68
 - data/TROUBLESHOOTING.md +2 -8
 - data/lib/google/cloud/pubsub/acknowledge_result.rb +79 -0
 - data/lib/google/cloud/pubsub/async_publisher/batch.rb +319 -0
 - data/lib/google/cloud/pubsub/async_publisher.rb +231 -156
 - data/lib/google/cloud/pubsub/batch_publisher.rb +60 -30
 - data/lib/google/cloud/pubsub/convert.rb +33 -7
 - data/lib/google/cloud/pubsub/credentials.rb +2 -2
 - data/lib/google/cloud/pubsub/errors.rb +93 -0
 - data/lib/google/cloud/pubsub/flow_controller.rb +137 -0
 - data/lib/google/cloud/pubsub/message.rb +45 -4
 - data/lib/google/cloud/pubsub/policy.rb +3 -2
 - data/lib/google/cloud/pubsub/project.rb +316 -49
 - data/lib/google/cloud/pubsub/publish_result.rb +6 -1
 - data/lib/google/cloud/pubsub/received_message.rb +171 -10
 - data/lib/google/cloud/pubsub/retry_policy.rb +88 -0
 - data/lib/google/cloud/pubsub/schema/list.rb +180 -0
 - data/lib/google/cloud/pubsub/schema.rb +310 -0
 - data/lib/google/cloud/pubsub/service.rb +285 -269
 - data/lib/google/cloud/pubsub/snapshot/list.rb +4 -6
 - data/lib/google/cloud/pubsub/snapshot.rb +5 -2
 - data/lib/google/cloud/pubsub/subscriber/inventory.rb +69 -32
 - data/lib/google/cloud/pubsub/subscriber/sequencer.rb +115 -0
 - data/lib/google/cloud/pubsub/subscriber/stream.rb +108 -49
 - data/lib/google/cloud/pubsub/subscriber/timed_unary_buffer.rb +191 -30
 - data/lib/google/cloud/pubsub/subscriber.rb +155 -45
 - data/lib/google/cloud/pubsub/subscription/list.rb +4 -6
 - data/lib/google/cloud/pubsub/subscription/push_config.rb +55 -31
 - data/lib/google/cloud/pubsub/subscription.rb +561 -77
 - data/lib/google/cloud/pubsub/topic/list.rb +4 -6
 - data/lib/google/cloud/pubsub/topic.rb +372 -52
 - data/lib/google/cloud/pubsub/version.rb +1 -1
 - data/lib/google/cloud/pubsub.rb +35 -46
 - data/lib/google-cloud-pubsub.rb +21 -27
 - metadata +26 -189
 - data/lib/google/cloud/pubsub/v1/credentials.rb +0 -41
 - data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb +0 -21
 - data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/options.rb +0 -21
 - data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb +0 -21
 - data/lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb +0 -91
 - data/lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb +0 -29
 - data/lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb +0 -222
 - data/lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb +0 -113
 - data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +0 -744
 - data/lib/google/cloud/pubsub/v1/doc/google/type/expr.rb +0 -19
 - data/lib/google/cloud/pubsub/v1/publisher_client.rb +0 -786
 - data/lib/google/cloud/pubsub/v1/publisher_client_config.json +0 -105
 - data/lib/google/cloud/pubsub/v1/subscriber_client.rb +0 -1385
 - data/lib/google/cloud/pubsub/v1/subscriber_client_config.json +0 -138
 - data/lib/google/cloud/pubsub/v1.rb +0 -17
 - data/lib/google/pubsub/v1/pubsub_pb.rb +0 -249
 - data/lib/google/pubsub/v1/pubsub_services_pb.rb +0 -211
 
| 
         @@ -1,138 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {
         
     | 
| 
       2 
     | 
    
         
            -
              "interfaces": {
         
     | 
| 
       3 
     | 
    
         
            -
                "google.pubsub.v1.Subscriber": {
         
     | 
| 
       4 
     | 
    
         
            -
                  "retry_codes": {
         
     | 
| 
       5 
     | 
    
         
            -
                    "idempotent": [
         
     | 
| 
       6 
     | 
    
         
            -
                      "ABORTED",
         
     | 
| 
       7 
     | 
    
         
            -
                      "UNAVAILABLE",
         
     | 
| 
       8 
     | 
    
         
            -
                      "UNKNOWN"
         
     | 
| 
       9 
     | 
    
         
            -
                    ],
         
     | 
| 
       10 
     | 
    
         
            -
                    "non_idempotent": [
         
     | 
| 
       11 
     | 
    
         
            -
                      "UNAVAILABLE"
         
     | 
| 
       12 
     | 
    
         
            -
                    ],
         
     | 
| 
       13 
     | 
    
         
            -
                    "none": []
         
     | 
| 
       14 
     | 
    
         
            -
                  },
         
     | 
| 
       15 
     | 
    
         
            -
                  "retry_params": {
         
     | 
| 
       16 
     | 
    
         
            -
                    "default": {
         
     | 
| 
       17 
     | 
    
         
            -
                      "initial_retry_delay_millis": 100,
         
     | 
| 
       18 
     | 
    
         
            -
                      "retry_delay_multiplier": 1.3,
         
     | 
| 
       19 
     | 
    
         
            -
                      "max_retry_delay_millis": 60000,
         
     | 
| 
       20 
     | 
    
         
            -
                      "initial_rpc_timeout_millis": 60000,
         
     | 
| 
       21 
     | 
    
         
            -
                      "rpc_timeout_multiplier": 1.0,
         
     | 
| 
       22 
     | 
    
         
            -
                      "max_rpc_timeout_millis": 60000,
         
     | 
| 
       23 
     | 
    
         
            -
                      "total_timeout_millis": 600000
         
     | 
| 
       24 
     | 
    
         
            -
                    },
         
     | 
| 
       25 
     | 
    
         
            -
                    "messaging": {
         
     | 
| 
       26 
     | 
    
         
            -
                      "initial_retry_delay_millis": 100,
         
     | 
| 
       27 
     | 
    
         
            -
                      "retry_delay_multiplier": 1.3,
         
     | 
| 
       28 
     | 
    
         
            -
                      "max_retry_delay_millis": 60000,
         
     | 
| 
       29 
     | 
    
         
            -
                      "initial_rpc_timeout_millis": 5000,
         
     | 
| 
       30 
     | 
    
         
            -
                      "rpc_timeout_multiplier": 1.3,
         
     | 
| 
       31 
     | 
    
         
            -
                      "max_rpc_timeout_millis": 600000,
         
     | 
| 
       32 
     | 
    
         
            -
                      "total_timeout_millis": 600000
         
     | 
| 
       33 
     | 
    
         
            -
                    },
         
     | 
| 
       34 
     | 
    
         
            -
                    "streaming_messaging": {
         
     | 
| 
       35 
     | 
    
         
            -
                      "initial_retry_delay_millis": 100,
         
     | 
| 
       36 
     | 
    
         
            -
                      "retry_delay_multiplier": 1.3,
         
     | 
| 
       37 
     | 
    
         
            -
                      "max_retry_delay_millis": 60000,
         
     | 
| 
       38 
     | 
    
         
            -
                      "initial_rpc_timeout_millis": 600000,
         
     | 
| 
       39 
     | 
    
         
            -
                      "rpc_timeout_multiplier": 1.0,
         
     | 
| 
       40 
     | 
    
         
            -
                      "max_rpc_timeout_millis": 600000,
         
     | 
| 
       41 
     | 
    
         
            -
                      "total_timeout_millis": 600000
         
     | 
| 
       42 
     | 
    
         
            -
                    }
         
     | 
| 
       43 
     | 
    
         
            -
                  },
         
     | 
| 
       44 
     | 
    
         
            -
                  "methods": {
         
     | 
| 
       45 
     | 
    
         
            -
                    "CreateSubscription": {
         
     | 
| 
       46 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       47 
     | 
    
         
            -
                      "retry_codes_name": "idempotent",
         
     | 
| 
       48 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       49 
     | 
    
         
            -
                    },
         
     | 
| 
       50 
     | 
    
         
            -
                    "GetSubscription": {
         
     | 
| 
       51 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       52 
     | 
    
         
            -
                      "retry_codes_name": "idempotent",
         
     | 
| 
       53 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       54 
     | 
    
         
            -
                    },
         
     | 
| 
       55 
     | 
    
         
            -
                    "UpdateSubscription": {
         
     | 
| 
       56 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       57 
     | 
    
         
            -
                      "retry_codes_name": "non_idempotent",
         
     | 
| 
       58 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       59 
     | 
    
         
            -
                    },
         
     | 
| 
       60 
     | 
    
         
            -
                    "ListSubscriptions": {
         
     | 
| 
       61 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       62 
     | 
    
         
            -
                      "retry_codes_name": "idempotent",
         
     | 
| 
       63 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       64 
     | 
    
         
            -
                    },
         
     | 
| 
       65 
     | 
    
         
            -
                    "DeleteSubscription": {
         
     | 
| 
       66 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       67 
     | 
    
         
            -
                      "retry_codes_name": "non_idempotent",
         
     | 
| 
       68 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       69 
     | 
    
         
            -
                    },
         
     | 
| 
       70 
     | 
    
         
            -
                    "ModifyAckDeadline": {
         
     | 
| 
       71 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       72 
     | 
    
         
            -
                      "retry_codes_name": "non_idempotent",
         
     | 
| 
       73 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       74 
     | 
    
         
            -
                    },
         
     | 
| 
       75 
     | 
    
         
            -
                    "Acknowledge": {
         
     | 
| 
       76 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       77 
     | 
    
         
            -
                      "retry_codes_name": "non_idempotent",
         
     | 
| 
       78 
     | 
    
         
            -
                      "retry_params_name": "messaging"
         
     | 
| 
       79 
     | 
    
         
            -
                    },
         
     | 
| 
       80 
     | 
    
         
            -
                    "Pull": {
         
     | 
| 
       81 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       82 
     | 
    
         
            -
                      "retry_codes_name": "idempotent",
         
     | 
| 
       83 
     | 
    
         
            -
                      "retry_params_name": "messaging"
         
     | 
| 
       84 
     | 
    
         
            -
                    },
         
     | 
| 
       85 
     | 
    
         
            -
                    "StreamingPull": {
         
     | 
| 
       86 
     | 
    
         
            -
                      "timeout_millis": 900000,
         
     | 
| 
       87 
     | 
    
         
            -
                      "retry_codes_name": "none",
         
     | 
| 
       88 
     | 
    
         
            -
                      "retry_params_name": "streaming_messaging"
         
     | 
| 
       89 
     | 
    
         
            -
                    },
         
     | 
| 
       90 
     | 
    
         
            -
                    "ModifyPushConfig": {
         
     | 
| 
       91 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       92 
     | 
    
         
            -
                      "retry_codes_name": "non_idempotent",
         
     | 
| 
       93 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       94 
     | 
    
         
            -
                    },
         
     | 
| 
       95 
     | 
    
         
            -
                    "ListSnapshots": {
         
     | 
| 
       96 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       97 
     | 
    
         
            -
                      "retry_codes_name": "idempotent",
         
     | 
| 
       98 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       99 
     | 
    
         
            -
                    },
         
     | 
| 
       100 
     | 
    
         
            -
                    "CreateSnapshot": {
         
     | 
| 
       101 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       102 
     | 
    
         
            -
                      "retry_codes_name": "non_idempotent",
         
     | 
| 
       103 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       104 
     | 
    
         
            -
                    },
         
     | 
| 
       105 
     | 
    
         
            -
                    "UpdateSnapshot": {
         
     | 
| 
       106 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       107 
     | 
    
         
            -
                      "retry_codes_name": "non_idempotent",
         
     | 
| 
       108 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       109 
     | 
    
         
            -
                    },
         
     | 
| 
       110 
     | 
    
         
            -
                    "DeleteSnapshot": {
         
     | 
| 
       111 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       112 
     | 
    
         
            -
                      "retry_codes_name": "non_idempotent",
         
     | 
| 
       113 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       114 
     | 
    
         
            -
                    },
         
     | 
| 
       115 
     | 
    
         
            -
                    "Seek": {
         
     | 
| 
       116 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       117 
     | 
    
         
            -
                      "retry_codes_name": "idempotent",
         
     | 
| 
       118 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       119 
     | 
    
         
            -
                    },
         
     | 
| 
       120 
     | 
    
         
            -
                    "SetIamPolicy": {
         
     | 
| 
       121 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       122 
     | 
    
         
            -
                      "retry_codes_name": "non_idempotent",
         
     | 
| 
       123 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       124 
     | 
    
         
            -
                    },
         
     | 
| 
       125 
     | 
    
         
            -
                    "GetIamPolicy": {
         
     | 
| 
       126 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       127 
     | 
    
         
            -
                      "retry_codes_name": "idempotent",
         
     | 
| 
       128 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       129 
     | 
    
         
            -
                    },
         
     | 
| 
       130 
     | 
    
         
            -
                    "TestIamPermissions": {
         
     | 
| 
       131 
     | 
    
         
            -
                      "timeout_millis": 60000,
         
     | 
| 
       132 
     | 
    
         
            -
                      "retry_codes_name": "non_idempotent",
         
     | 
| 
       133 
     | 
    
         
            -
                      "retry_params_name": "default"
         
     | 
| 
       134 
     | 
    
         
            -
                    }
         
     | 
| 
       135 
     | 
    
         
            -
                  }
         
     | 
| 
       136 
     | 
    
         
            -
                }
         
     | 
| 
       137 
     | 
    
         
            -
              }
         
     | 
| 
       138 
     | 
    
         
            -
            }
         
     | 
| 
         @@ -1,17 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Copyright 2015 Google LLC
         
     | 
| 
       2 
     | 
    
         
            -
            #
         
     | 
| 
       3 
     | 
    
         
            -
            # Licensed under the Apache License, Version 2.0 (the "License");
         
     | 
| 
       4 
     | 
    
         
            -
            # you may not use this file except in compliance with the License.
         
     | 
| 
       5 
     | 
    
         
            -
            # You may obtain a copy of the License at
         
     | 
| 
       6 
     | 
    
         
            -
            #
         
     | 
| 
       7 
     | 
    
         
            -
            #     https://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       8 
     | 
    
         
            -
            #
         
     | 
| 
       9 
     | 
    
         
            -
            # Unless required by applicable law or agreed to in writing, software
         
     | 
| 
       10 
     | 
    
         
            -
            # distributed under the License is distributed on an "AS IS" BASIS,
         
     | 
| 
       11 
     | 
    
         
            -
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         
     | 
| 
       12 
     | 
    
         
            -
            # See the License for the specific language governing permissions and
         
     | 
| 
       13 
     | 
    
         
            -
            # limitations under the License.
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
            require "google/cloud/pubsub/v1/publisher_client"
         
     | 
| 
       17 
     | 
    
         
            -
            require "google/cloud/pubsub/v1/subscriber_client"
         
     | 
| 
         @@ -1,249 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
     | 
    
         
            -
            # source: google/pubsub/v1/pubsub.proto
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            require 'google/protobuf'
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            require 'google/api/annotations_pb'
         
     | 
| 
       8 
     | 
    
         
            -
            require 'google/api/client_pb'
         
     | 
| 
       9 
     | 
    
         
            -
            require 'google/protobuf/duration_pb'
         
     | 
| 
       10 
     | 
    
         
            -
            require 'google/protobuf/empty_pb'
         
     | 
| 
       11 
     | 
    
         
            -
            require 'google/protobuf/field_mask_pb'
         
     | 
| 
       12 
     | 
    
         
            -
            require 'google/protobuf/timestamp_pb'
         
     | 
| 
       13 
     | 
    
         
            -
            Google::Protobuf::DescriptorPool.generated_pool.build do
         
     | 
| 
       14 
     | 
    
         
            -
              add_message "google.pubsub.v1.MessageStoragePolicy" do
         
     | 
| 
       15 
     | 
    
         
            -
                repeated :allowed_persistence_regions, :string, 1
         
     | 
| 
       16 
     | 
    
         
            -
              end
         
     | 
| 
       17 
     | 
    
         
            -
              add_message "google.pubsub.v1.Topic" do
         
     | 
| 
       18 
     | 
    
         
            -
                optional :name, :string, 1
         
     | 
| 
       19 
     | 
    
         
            -
                map :labels, :string, :string, 2
         
     | 
| 
       20 
     | 
    
         
            -
                optional :message_storage_policy, :message, 3, "google.pubsub.v1.MessageStoragePolicy"
         
     | 
| 
       21 
     | 
    
         
            -
                optional :kms_key_name, :string, 5
         
     | 
| 
       22 
     | 
    
         
            -
              end
         
     | 
| 
       23 
     | 
    
         
            -
              add_message "google.pubsub.v1.PubsubMessage" do
         
     | 
| 
       24 
     | 
    
         
            -
                optional :data, :bytes, 1
         
     | 
| 
       25 
     | 
    
         
            -
                map :attributes, :string, :string, 2
         
     | 
| 
       26 
     | 
    
         
            -
                optional :message_id, :string, 3
         
     | 
| 
       27 
     | 
    
         
            -
                optional :publish_time, :message, 4, "google.protobuf.Timestamp"
         
     | 
| 
       28 
     | 
    
         
            -
                optional :ordering_key, :string, 5
         
     | 
| 
       29 
     | 
    
         
            -
              end
         
     | 
| 
       30 
     | 
    
         
            -
              add_message "google.pubsub.v1.GetTopicRequest" do
         
     | 
| 
       31 
     | 
    
         
            -
                optional :topic, :string, 1
         
     | 
| 
       32 
     | 
    
         
            -
              end
         
     | 
| 
       33 
     | 
    
         
            -
              add_message "google.pubsub.v1.UpdateTopicRequest" do
         
     | 
| 
       34 
     | 
    
         
            -
                optional :topic, :message, 1, "google.pubsub.v1.Topic"
         
     | 
| 
       35 
     | 
    
         
            -
                optional :update_mask, :message, 2, "google.protobuf.FieldMask"
         
     | 
| 
       36 
     | 
    
         
            -
              end
         
     | 
| 
       37 
     | 
    
         
            -
              add_message "google.pubsub.v1.PublishRequest" do
         
     | 
| 
       38 
     | 
    
         
            -
                optional :topic, :string, 1
         
     | 
| 
       39 
     | 
    
         
            -
                repeated :messages, :message, 2, "google.pubsub.v1.PubsubMessage"
         
     | 
| 
       40 
     | 
    
         
            -
              end
         
     | 
| 
       41 
     | 
    
         
            -
              add_message "google.pubsub.v1.PublishResponse" do
         
     | 
| 
       42 
     | 
    
         
            -
                repeated :message_ids, :string, 1
         
     | 
| 
       43 
     | 
    
         
            -
              end
         
     | 
| 
       44 
     | 
    
         
            -
              add_message "google.pubsub.v1.ListTopicsRequest" do
         
     | 
| 
       45 
     | 
    
         
            -
                optional :project, :string, 1
         
     | 
| 
       46 
     | 
    
         
            -
                optional :page_size, :int32, 2
         
     | 
| 
       47 
     | 
    
         
            -
                optional :page_token, :string, 3
         
     | 
| 
       48 
     | 
    
         
            -
              end
         
     | 
| 
       49 
     | 
    
         
            -
              add_message "google.pubsub.v1.ListTopicsResponse" do
         
     | 
| 
       50 
     | 
    
         
            -
                repeated :topics, :message, 1, "google.pubsub.v1.Topic"
         
     | 
| 
       51 
     | 
    
         
            -
                optional :next_page_token, :string, 2
         
     | 
| 
       52 
     | 
    
         
            -
              end
         
     | 
| 
       53 
     | 
    
         
            -
              add_message "google.pubsub.v1.ListTopicSubscriptionsRequest" do
         
     | 
| 
       54 
     | 
    
         
            -
                optional :topic, :string, 1
         
     | 
| 
       55 
     | 
    
         
            -
                optional :page_size, :int32, 2
         
     | 
| 
       56 
     | 
    
         
            -
                optional :page_token, :string, 3
         
     | 
| 
       57 
     | 
    
         
            -
              end
         
     | 
| 
       58 
     | 
    
         
            -
              add_message "google.pubsub.v1.ListTopicSubscriptionsResponse" do
         
     | 
| 
       59 
     | 
    
         
            -
                repeated :subscriptions, :string, 1
         
     | 
| 
       60 
     | 
    
         
            -
                optional :next_page_token, :string, 2
         
     | 
| 
       61 
     | 
    
         
            -
              end
         
     | 
| 
       62 
     | 
    
         
            -
              add_message "google.pubsub.v1.ListTopicSnapshotsRequest" do
         
     | 
| 
       63 
     | 
    
         
            -
                optional :topic, :string, 1
         
     | 
| 
       64 
     | 
    
         
            -
                optional :page_size, :int32, 2
         
     | 
| 
       65 
     | 
    
         
            -
                optional :page_token, :string, 3
         
     | 
| 
       66 
     | 
    
         
            -
              end
         
     | 
| 
       67 
     | 
    
         
            -
              add_message "google.pubsub.v1.ListTopicSnapshotsResponse" do
         
     | 
| 
       68 
     | 
    
         
            -
                repeated :snapshots, :string, 1
         
     | 
| 
       69 
     | 
    
         
            -
                optional :next_page_token, :string, 2
         
     | 
| 
       70 
     | 
    
         
            -
              end
         
     | 
| 
       71 
     | 
    
         
            -
              add_message "google.pubsub.v1.DeleteTopicRequest" do
         
     | 
| 
       72 
     | 
    
         
            -
                optional :topic, :string, 1
         
     | 
| 
       73 
     | 
    
         
            -
              end
         
     | 
| 
       74 
     | 
    
         
            -
              add_message "google.pubsub.v1.Subscription" do
         
     | 
| 
       75 
     | 
    
         
            -
                optional :name, :string, 1
         
     | 
| 
       76 
     | 
    
         
            -
                optional :topic, :string, 2
         
     | 
| 
       77 
     | 
    
         
            -
                optional :push_config, :message, 4, "google.pubsub.v1.PushConfig"
         
     | 
| 
       78 
     | 
    
         
            -
                optional :ack_deadline_seconds, :int32, 5
         
     | 
| 
       79 
     | 
    
         
            -
                optional :retain_acked_messages, :bool, 7
         
     | 
| 
       80 
     | 
    
         
            -
                optional :message_retention_duration, :message, 8, "google.protobuf.Duration"
         
     | 
| 
       81 
     | 
    
         
            -
                map :labels, :string, :string, 9
         
     | 
| 
       82 
     | 
    
         
            -
                optional :enable_message_ordering, :bool, 10
         
     | 
| 
       83 
     | 
    
         
            -
                optional :expiration_policy, :message, 11, "google.pubsub.v1.ExpirationPolicy"
         
     | 
| 
       84 
     | 
    
         
            -
                optional :dead_letter_policy, :message, 13, "google.pubsub.v1.DeadLetterPolicy"
         
     | 
| 
       85 
     | 
    
         
            -
              end
         
     | 
| 
       86 
     | 
    
         
            -
              add_message "google.pubsub.v1.DeadLetterPolicy" do
         
     | 
| 
       87 
     | 
    
         
            -
                optional :dead_letter_topic, :string, 1
         
     | 
| 
       88 
     | 
    
         
            -
                optional :max_delivery_attempts, :int32, 2
         
     | 
| 
       89 
     | 
    
         
            -
              end
         
     | 
| 
       90 
     | 
    
         
            -
              add_message "google.pubsub.v1.ExpirationPolicy" do
         
     | 
| 
       91 
     | 
    
         
            -
                optional :ttl, :message, 1, "google.protobuf.Duration"
         
     | 
| 
       92 
     | 
    
         
            -
              end
         
     | 
| 
       93 
     | 
    
         
            -
              add_message "google.pubsub.v1.PushConfig" do
         
     | 
| 
       94 
     | 
    
         
            -
                optional :push_endpoint, :string, 1
         
     | 
| 
       95 
     | 
    
         
            -
                map :attributes, :string, :string, 2
         
     | 
| 
       96 
     | 
    
         
            -
                oneof :authentication_method do
         
     | 
| 
       97 
     | 
    
         
            -
                  optional :oidc_token, :message, 3, "google.pubsub.v1.PushConfig.OidcToken"
         
     | 
| 
       98 
     | 
    
         
            -
                end
         
     | 
| 
       99 
     | 
    
         
            -
              end
         
     | 
| 
       100 
     | 
    
         
            -
              add_message "google.pubsub.v1.PushConfig.OidcToken" do
         
     | 
| 
       101 
     | 
    
         
            -
                optional :service_account_email, :string, 1
         
     | 
| 
       102 
     | 
    
         
            -
                optional :audience, :string, 2
         
     | 
| 
       103 
     | 
    
         
            -
              end
         
     | 
| 
       104 
     | 
    
         
            -
              add_message "google.pubsub.v1.ReceivedMessage" do
         
     | 
| 
       105 
     | 
    
         
            -
                optional :ack_id, :string, 1
         
     | 
| 
       106 
     | 
    
         
            -
                optional :message, :message, 2, "google.pubsub.v1.PubsubMessage"
         
     | 
| 
       107 
     | 
    
         
            -
                optional :delivery_attempt, :int32, 3
         
     | 
| 
       108 
     | 
    
         
            -
              end
         
     | 
| 
       109 
     | 
    
         
            -
              add_message "google.pubsub.v1.GetSubscriptionRequest" do
         
     | 
| 
       110 
     | 
    
         
            -
                optional :subscription, :string, 1
         
     | 
| 
       111 
     | 
    
         
            -
              end
         
     | 
| 
       112 
     | 
    
         
            -
              add_message "google.pubsub.v1.UpdateSubscriptionRequest" do
         
     | 
| 
       113 
     | 
    
         
            -
                optional :subscription, :message, 1, "google.pubsub.v1.Subscription"
         
     | 
| 
       114 
     | 
    
         
            -
                optional :update_mask, :message, 2, "google.protobuf.FieldMask"
         
     | 
| 
       115 
     | 
    
         
            -
              end
         
     | 
| 
       116 
     | 
    
         
            -
              add_message "google.pubsub.v1.ListSubscriptionsRequest" do
         
     | 
| 
       117 
     | 
    
         
            -
                optional :project, :string, 1
         
     | 
| 
       118 
     | 
    
         
            -
                optional :page_size, :int32, 2
         
     | 
| 
       119 
     | 
    
         
            -
                optional :page_token, :string, 3
         
     | 
| 
       120 
     | 
    
         
            -
              end
         
     | 
| 
       121 
     | 
    
         
            -
              add_message "google.pubsub.v1.ListSubscriptionsResponse" do
         
     | 
| 
       122 
     | 
    
         
            -
                repeated :subscriptions, :message, 1, "google.pubsub.v1.Subscription"
         
     | 
| 
       123 
     | 
    
         
            -
                optional :next_page_token, :string, 2
         
     | 
| 
       124 
     | 
    
         
            -
              end
         
     | 
| 
       125 
     | 
    
         
            -
              add_message "google.pubsub.v1.DeleteSubscriptionRequest" do
         
     | 
| 
       126 
     | 
    
         
            -
                optional :subscription, :string, 1
         
     | 
| 
       127 
     | 
    
         
            -
              end
         
     | 
| 
       128 
     | 
    
         
            -
              add_message "google.pubsub.v1.ModifyPushConfigRequest" do
         
     | 
| 
       129 
     | 
    
         
            -
                optional :subscription, :string, 1
         
     | 
| 
       130 
     | 
    
         
            -
                optional :push_config, :message, 2, "google.pubsub.v1.PushConfig"
         
     | 
| 
       131 
     | 
    
         
            -
              end
         
     | 
| 
       132 
     | 
    
         
            -
              add_message "google.pubsub.v1.PullRequest" do
         
     | 
| 
       133 
     | 
    
         
            -
                optional :subscription, :string, 1
         
     | 
| 
       134 
     | 
    
         
            -
                optional :return_immediately, :bool, 2
         
     | 
| 
       135 
     | 
    
         
            -
                optional :max_messages, :int32, 3
         
     | 
| 
       136 
     | 
    
         
            -
              end
         
     | 
| 
       137 
     | 
    
         
            -
              add_message "google.pubsub.v1.PullResponse" do
         
     | 
| 
       138 
     | 
    
         
            -
                repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
         
     | 
| 
       139 
     | 
    
         
            -
              end
         
     | 
| 
       140 
     | 
    
         
            -
              add_message "google.pubsub.v1.ModifyAckDeadlineRequest" do
         
     | 
| 
       141 
     | 
    
         
            -
                optional :subscription, :string, 1
         
     | 
| 
       142 
     | 
    
         
            -
                repeated :ack_ids, :string, 4
         
     | 
| 
       143 
     | 
    
         
            -
                optional :ack_deadline_seconds, :int32, 3
         
     | 
| 
       144 
     | 
    
         
            -
              end
         
     | 
| 
       145 
     | 
    
         
            -
              add_message "google.pubsub.v1.AcknowledgeRequest" do
         
     | 
| 
       146 
     | 
    
         
            -
                optional :subscription, :string, 1
         
     | 
| 
       147 
     | 
    
         
            -
                repeated :ack_ids, :string, 2
         
     | 
| 
       148 
     | 
    
         
            -
              end
         
     | 
| 
       149 
     | 
    
         
            -
              add_message "google.pubsub.v1.StreamingPullRequest" do
         
     | 
| 
       150 
     | 
    
         
            -
                optional :subscription, :string, 1
         
     | 
| 
       151 
     | 
    
         
            -
                repeated :ack_ids, :string, 2
         
     | 
| 
       152 
     | 
    
         
            -
                repeated :modify_deadline_seconds, :int32, 3
         
     | 
| 
       153 
     | 
    
         
            -
                repeated :modify_deadline_ack_ids, :string, 4
         
     | 
| 
       154 
     | 
    
         
            -
                optional :stream_ack_deadline_seconds, :int32, 5
         
     | 
| 
       155 
     | 
    
         
            -
              end
         
     | 
| 
       156 
     | 
    
         
            -
              add_message "google.pubsub.v1.StreamingPullResponse" do
         
     | 
| 
       157 
     | 
    
         
            -
                repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
         
     | 
| 
       158 
     | 
    
         
            -
              end
         
     | 
| 
       159 
     | 
    
         
            -
              add_message "google.pubsub.v1.CreateSnapshotRequest" do
         
     | 
| 
       160 
     | 
    
         
            -
                optional :name, :string, 1
         
     | 
| 
       161 
     | 
    
         
            -
                optional :subscription, :string, 2
         
     | 
| 
       162 
     | 
    
         
            -
                map :labels, :string, :string, 3
         
     | 
| 
       163 
     | 
    
         
            -
              end
         
     | 
| 
       164 
     | 
    
         
            -
              add_message "google.pubsub.v1.UpdateSnapshotRequest" do
         
     | 
| 
       165 
     | 
    
         
            -
                optional :snapshot, :message, 1, "google.pubsub.v1.Snapshot"
         
     | 
| 
       166 
     | 
    
         
            -
                optional :update_mask, :message, 2, "google.protobuf.FieldMask"
         
     | 
| 
       167 
     | 
    
         
            -
              end
         
     | 
| 
       168 
     | 
    
         
            -
              add_message "google.pubsub.v1.Snapshot" do
         
     | 
| 
       169 
     | 
    
         
            -
                optional :name, :string, 1
         
     | 
| 
       170 
     | 
    
         
            -
                optional :topic, :string, 2
         
     | 
| 
       171 
     | 
    
         
            -
                optional :expire_time, :message, 3, "google.protobuf.Timestamp"
         
     | 
| 
       172 
     | 
    
         
            -
                map :labels, :string, :string, 4
         
     | 
| 
       173 
     | 
    
         
            -
              end
         
     | 
| 
       174 
     | 
    
         
            -
              add_message "google.pubsub.v1.GetSnapshotRequest" do
         
     | 
| 
       175 
     | 
    
         
            -
                optional :snapshot, :string, 1
         
     | 
| 
       176 
     | 
    
         
            -
              end
         
     | 
| 
       177 
     | 
    
         
            -
              add_message "google.pubsub.v1.ListSnapshotsRequest" do
         
     | 
| 
       178 
     | 
    
         
            -
                optional :project, :string, 1
         
     | 
| 
       179 
     | 
    
         
            -
                optional :page_size, :int32, 2
         
     | 
| 
       180 
     | 
    
         
            -
                optional :page_token, :string, 3
         
     | 
| 
       181 
     | 
    
         
            -
              end
         
     | 
| 
       182 
     | 
    
         
            -
              add_message "google.pubsub.v1.ListSnapshotsResponse" do
         
     | 
| 
       183 
     | 
    
         
            -
                repeated :snapshots, :message, 1, "google.pubsub.v1.Snapshot"
         
     | 
| 
       184 
     | 
    
         
            -
                optional :next_page_token, :string, 2
         
     | 
| 
       185 
     | 
    
         
            -
              end
         
     | 
| 
       186 
     | 
    
         
            -
              add_message "google.pubsub.v1.DeleteSnapshotRequest" do
         
     | 
| 
       187 
     | 
    
         
            -
                optional :snapshot, :string, 1
         
     | 
| 
       188 
     | 
    
         
            -
              end
         
     | 
| 
       189 
     | 
    
         
            -
              add_message "google.pubsub.v1.SeekRequest" do
         
     | 
| 
       190 
     | 
    
         
            -
                optional :subscription, :string, 1
         
     | 
| 
       191 
     | 
    
         
            -
                oneof :target do
         
     | 
| 
       192 
     | 
    
         
            -
                  optional :time, :message, 2, "google.protobuf.Timestamp"
         
     | 
| 
       193 
     | 
    
         
            -
                  optional :snapshot, :string, 3
         
     | 
| 
       194 
     | 
    
         
            -
                end
         
     | 
| 
       195 
     | 
    
         
            -
              end
         
     | 
| 
       196 
     | 
    
         
            -
              add_message "google.pubsub.v1.SeekResponse" do
         
     | 
| 
       197 
     | 
    
         
            -
              end
         
     | 
| 
       198 
     | 
    
         
            -
            end
         
     | 
| 
       199 
     | 
    
         
            -
             
     | 
| 
       200 
     | 
    
         
            -
            module Google
         
     | 
| 
       201 
     | 
    
         
            -
              module Cloud
         
     | 
| 
       202 
     | 
    
         
            -
                module PubSub
         
     | 
| 
       203 
     | 
    
         
            -
                end
         
     | 
| 
       204 
     | 
    
         
            -
              end
         
     | 
| 
       205 
     | 
    
         
            -
              Pubsub = Cloud::PubSub unless const_defined? :Pubsub
         
     | 
| 
       206 
     | 
    
         
            -
            end
         
     | 
| 
       207 
     | 
    
         
            -
            module Google::Cloud::PubSub::V1
         
     | 
| 
       208 
     | 
    
         
            -
              MessageStoragePolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.MessageStoragePolicy").msgclass
         
     | 
| 
       209 
     | 
    
         
            -
              Topic = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Topic").msgclass
         
     | 
| 
       210 
     | 
    
         
            -
              PubsubMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PubsubMessage").msgclass
         
     | 
| 
       211 
     | 
    
         
            -
              GetTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetTopicRequest").msgclass
         
     | 
| 
       212 
     | 
    
         
            -
              UpdateTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateTopicRequest").msgclass
         
     | 
| 
       213 
     | 
    
         
            -
              PublishRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PublishRequest").msgclass
         
     | 
| 
       214 
     | 
    
         
            -
              PublishResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PublishResponse").msgclass
         
     | 
| 
       215 
     | 
    
         
            -
              ListTopicsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicsRequest").msgclass
         
     | 
| 
       216 
     | 
    
         
            -
              ListTopicsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicsResponse").msgclass
         
     | 
| 
       217 
     | 
    
         
            -
              ListTopicSubscriptionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSubscriptionsRequest").msgclass
         
     | 
| 
       218 
     | 
    
         
            -
              ListTopicSubscriptionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSubscriptionsResponse").msgclass
         
     | 
| 
       219 
     | 
    
         
            -
              ListTopicSnapshotsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSnapshotsRequest").msgclass
         
     | 
| 
       220 
     | 
    
         
            -
              ListTopicSnapshotsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListTopicSnapshotsResponse").msgclass
         
     | 
| 
       221 
     | 
    
         
            -
              DeleteTopicRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteTopicRequest").msgclass
         
     | 
| 
       222 
     | 
    
         
            -
              Subscription = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Subscription").msgclass
         
     | 
| 
       223 
     | 
    
         
            -
              DeadLetterPolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeadLetterPolicy").msgclass
         
     | 
| 
       224 
     | 
    
         
            -
              ExpirationPolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ExpirationPolicy").msgclass
         
     | 
| 
       225 
     | 
    
         
            -
              PushConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig").msgclass
         
     | 
| 
       226 
     | 
    
         
            -
              PushConfig::OidcToken = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PushConfig.OidcToken").msgclass
         
     | 
| 
       227 
     | 
    
         
            -
              ReceivedMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ReceivedMessage").msgclass
         
     | 
| 
       228 
     | 
    
         
            -
              GetSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetSubscriptionRequest").msgclass
         
     | 
| 
       229 
     | 
    
         
            -
              UpdateSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSubscriptionRequest").msgclass
         
     | 
| 
       230 
     | 
    
         
            -
              ListSubscriptionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSubscriptionsRequest").msgclass
         
     | 
| 
       231 
     | 
    
         
            -
              ListSubscriptionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSubscriptionsResponse").msgclass
         
     | 
| 
       232 
     | 
    
         
            -
              DeleteSubscriptionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteSubscriptionRequest").msgclass
         
     | 
| 
       233 
     | 
    
         
            -
              ModifyPushConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ModifyPushConfigRequest").msgclass
         
     | 
| 
       234 
     | 
    
         
            -
              PullRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PullRequest").msgclass
         
     | 
| 
       235 
     | 
    
         
            -
              PullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.PullResponse").msgclass
         
     | 
| 
       236 
     | 
    
         
            -
              ModifyAckDeadlineRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ModifyAckDeadlineRequest").msgclass
         
     | 
| 
       237 
     | 
    
         
            -
              AcknowledgeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.AcknowledgeRequest").msgclass
         
     | 
| 
       238 
     | 
    
         
            -
              StreamingPullRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullRequest").msgclass
         
     | 
| 
       239 
     | 
    
         
            -
              StreamingPullResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse").msgclass
         
     | 
| 
       240 
     | 
    
         
            -
              CreateSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CreateSnapshotRequest").msgclass
         
     | 
| 
       241 
     | 
    
         
            -
              UpdateSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSnapshotRequest").msgclass
         
     | 
| 
       242 
     | 
    
         
            -
              Snapshot = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Snapshot").msgclass
         
     | 
| 
       243 
     | 
    
         
            -
              GetSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.GetSnapshotRequest").msgclass
         
     | 
| 
       244 
     | 
    
         
            -
              ListSnapshotsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSnapshotsRequest").msgclass
         
     | 
| 
       245 
     | 
    
         
            -
              ListSnapshotsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.ListSnapshotsResponse").msgclass
         
     | 
| 
       246 
     | 
    
         
            -
              DeleteSnapshotRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.DeleteSnapshotRequest").msgclass
         
     | 
| 
       247 
     | 
    
         
            -
              SeekRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.SeekRequest").msgclass
         
     | 
| 
       248 
     | 
    
         
            -
              SeekResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.SeekResponse").msgclass
         
     | 
| 
       249 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,211 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         
     | 
| 
       2 
     | 
    
         
            -
            # Source: google/pubsub/v1/pubsub.proto for package 'Google::Cloud::PubSub::V1'
         
     | 
| 
       3 
     | 
    
         
            -
            # Original file comments:
         
     | 
| 
       4 
     | 
    
         
            -
            # Copyright 2019 Google LLC.
         
     | 
| 
       5 
     | 
    
         
            -
            #
         
     | 
| 
       6 
     | 
    
         
            -
            # Licensed under the Apache License, Version 2.0 (the "License");
         
     | 
| 
       7 
     | 
    
         
            -
            # you may not use this file except in compliance with the License.
         
     | 
| 
       8 
     | 
    
         
            -
            # You may obtain a copy of the License at
         
     | 
| 
       9 
     | 
    
         
            -
            #
         
     | 
| 
       10 
     | 
    
         
            -
            #     http://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
       11 
     | 
    
         
            -
            #
         
     | 
| 
       12 
     | 
    
         
            -
            # Unless required by applicable law or agreed to in writing, software
         
     | 
| 
       13 
     | 
    
         
            -
            # distributed under the License is distributed on an "AS IS" BASIS,
         
     | 
| 
       14 
     | 
    
         
            -
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         
     | 
| 
       15 
     | 
    
         
            -
            # See the License for the specific language governing permissions and
         
     | 
| 
       16 
     | 
    
         
            -
            # limitations under the License.
         
     | 
| 
       17 
     | 
    
         
            -
            #
         
     | 
| 
       18 
     | 
    
         
            -
            #
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
            require 'grpc'
         
     | 
| 
       22 
     | 
    
         
            -
            require 'google/pubsub/v1/pubsub_pb'
         
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
            module Google
         
     | 
| 
       25 
     | 
    
         
            -
              module Cloud
         
     | 
| 
       26 
     | 
    
         
            -
                module PubSub
         
     | 
| 
       27 
     | 
    
         
            -
                end
         
     | 
| 
       28 
     | 
    
         
            -
              end
         
     | 
| 
       29 
     | 
    
         
            -
              Pubsub = Cloud::PubSub unless const_defined? :Pubsub
         
     | 
| 
       30 
     | 
    
         
            -
            end
         
     | 
| 
       31 
     | 
    
         
            -
            module Google::Cloud::PubSub::V1
         
     | 
| 
       32 
     | 
    
         
            -
              module Publisher
         
     | 
| 
       33 
     | 
    
         
            -
                # The service that an application uses to manipulate topics, and to send
         
     | 
| 
       34 
     | 
    
         
            -
                # messages to a topic.
         
     | 
| 
       35 
     | 
    
         
            -
                class Service
         
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
                  include GRPC::GenericService
         
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
                  self.marshal_class_method = :encode
         
     | 
| 
       40 
     | 
    
         
            -
                  self.unmarshal_class_method = :decode
         
     | 
| 
       41 
     | 
    
         
            -
                  self.service_name = 'google.pubsub.v1.Publisher'
         
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
                  # Creates the given topic with the given name. See the
         
     | 
| 
       44 
     | 
    
         
            -
                  # <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
         
     | 
| 
       45 
     | 
    
         
            -
                  # resource name rules</a>.
         
     | 
| 
       46 
     | 
    
         
            -
                  rpc :CreateTopic, Topic, Topic
         
     | 
| 
       47 
     | 
    
         
            -
                  # Updates an existing topic. Note that certain properties of a
         
     | 
| 
       48 
     | 
    
         
            -
                  # topic are not modifiable.
         
     | 
| 
       49 
     | 
    
         
            -
                  rpc :UpdateTopic, UpdateTopicRequest, Topic
         
     | 
| 
       50 
     | 
    
         
            -
                  # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
         
     | 
| 
       51 
     | 
    
         
            -
                  # does not exist.
         
     | 
| 
       52 
     | 
    
         
            -
                  rpc :Publish, PublishRequest, PublishResponse
         
     | 
| 
       53 
     | 
    
         
            -
                  # Gets the configuration of a topic.
         
     | 
| 
       54 
     | 
    
         
            -
                  rpc :GetTopic, GetTopicRequest, Topic
         
     | 
| 
       55 
     | 
    
         
            -
                  # Lists matching topics.
         
     | 
| 
       56 
     | 
    
         
            -
                  rpc :ListTopics, ListTopicsRequest, ListTopicsResponse
         
     | 
| 
       57 
     | 
    
         
            -
                  # Lists the names of the subscriptions on this topic.
         
     | 
| 
       58 
     | 
    
         
            -
                  rpc :ListTopicSubscriptions, ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse
         
     | 
| 
       59 
     | 
    
         
            -
                  # Lists the names of the snapshots on this topic. Snapshots are used in
         
     | 
| 
       60 
     | 
    
         
            -
                  # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
         
     | 
| 
       61 
     | 
    
         
            -
                  # operations, which allow
         
     | 
| 
       62 
     | 
    
         
            -
                  # you to manage message acknowledgments in bulk. That is, you can set the
         
     | 
| 
       63 
     | 
    
         
            -
                  # acknowledgment state of messages in an existing subscription to the state
         
     | 
| 
       64 
     | 
    
         
            -
                  # captured by a snapshot.
         
     | 
| 
       65 
     | 
    
         
            -
                  rpc :ListTopicSnapshots, ListTopicSnapshotsRequest, ListTopicSnapshotsResponse
         
     | 
| 
       66 
     | 
    
         
            -
                  # Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
         
     | 
| 
       67 
     | 
    
         
            -
                  # does not exist. After a topic is deleted, a new topic may be created with
         
     | 
| 
       68 
     | 
    
         
            -
                  # the same name; this is an entirely new topic with none of the old
         
     | 
| 
       69 
     | 
    
         
            -
                  # configuration or subscriptions. Existing subscriptions to this topic are
         
     | 
| 
       70 
     | 
    
         
            -
                  # not deleted, but their `topic` field is set to `_deleted-topic_`.
         
     | 
| 
       71 
     | 
    
         
            -
                  rpc :DeleteTopic, DeleteTopicRequest, Google::Protobuf::Empty
         
     | 
| 
       72 
     | 
    
         
            -
                end
         
     | 
| 
       73 
     | 
    
         
            -
             
     | 
| 
       74 
     | 
    
         
            -
                Stub = Service.rpc_stub_class
         
     | 
| 
       75 
     | 
    
         
            -
              end
         
     | 
| 
       76 
     | 
    
         
            -
              module Subscriber
         
     | 
| 
       77 
     | 
    
         
            -
                # The service that an application uses to manipulate subscriptions and to
         
     | 
| 
       78 
     | 
    
         
            -
                # consume messages from a subscription via the `Pull` method or by
         
     | 
| 
       79 
     | 
    
         
            -
                # establishing a bi-directional stream using the `StreamingPull` method.
         
     | 
| 
       80 
     | 
    
         
            -
                class Service
         
     | 
| 
       81 
     | 
    
         
            -
             
     | 
| 
       82 
     | 
    
         
            -
                  include GRPC::GenericService
         
     | 
| 
       83 
     | 
    
         
            -
             
     | 
| 
       84 
     | 
    
         
            -
                  self.marshal_class_method = :encode
         
     | 
| 
       85 
     | 
    
         
            -
                  self.unmarshal_class_method = :decode
         
     | 
| 
       86 
     | 
    
         
            -
                  self.service_name = 'google.pubsub.v1.Subscriber'
         
     | 
| 
       87 
     | 
    
         
            -
             
     | 
| 
       88 
     | 
    
         
            -
                  # Creates a subscription to a given topic. See the
         
     | 
| 
       89 
     | 
    
         
            -
                  # <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
         
     | 
| 
       90 
     | 
    
         
            -
                  # resource name rules</a>.
         
     | 
| 
       91 
     | 
    
         
            -
                  # If the subscription already exists, returns `ALREADY_EXISTS`.
         
     | 
| 
       92 
     | 
    
         
            -
                  # If the corresponding topic doesn't exist, returns `NOT_FOUND`.
         
     | 
| 
       93 
     | 
    
         
            -
                  #
         
     | 
| 
       94 
     | 
    
         
            -
                  # If the name is not provided in the request, the server will assign a random
         
     | 
| 
       95 
     | 
    
         
            -
                  # name for this subscription on the same project as the topic, conforming
         
     | 
| 
       96 
     | 
    
         
            -
                  # to the
         
     | 
| 
       97 
     | 
    
         
            -
                  # [resource name
         
     | 
| 
       98 
     | 
    
         
            -
                  # format](https://cloud.google.com/pubsub/docs/admin#resource_names). The
         
     | 
| 
       99 
     | 
    
         
            -
                  # generated name is populated in the returned Subscription object. Note that
         
     | 
| 
       100 
     | 
    
         
            -
                  # for REST API requests, you must specify a name in the request.
         
     | 
| 
       101 
     | 
    
         
            -
                  rpc :CreateSubscription, Subscription, Subscription
         
     | 
| 
       102 
     | 
    
         
            -
                  # Gets the configuration details of a subscription.
         
     | 
| 
       103 
     | 
    
         
            -
                  rpc :GetSubscription, GetSubscriptionRequest, Subscription
         
     | 
| 
       104 
     | 
    
         
            -
                  # Updates an existing subscription. Note that certain properties of a
         
     | 
| 
       105 
     | 
    
         
            -
                  # subscription, such as its topic, are not modifiable.
         
     | 
| 
       106 
     | 
    
         
            -
                  rpc :UpdateSubscription, UpdateSubscriptionRequest, Subscription
         
     | 
| 
       107 
     | 
    
         
            -
                  # Lists matching subscriptions.
         
     | 
| 
       108 
     | 
    
         
            -
                  rpc :ListSubscriptions, ListSubscriptionsRequest, ListSubscriptionsResponse
         
     | 
| 
       109 
     | 
    
         
            -
                  # Deletes an existing subscription. All messages retained in the subscription
         
     | 
| 
       110 
     | 
    
         
            -
                  # are immediately dropped. Calls to `Pull` after deletion will return
         
     | 
| 
       111 
     | 
    
         
            -
                  # `NOT_FOUND`. After a subscription is deleted, a new one may be created with
         
     | 
| 
       112 
     | 
    
         
            -
                  # the same name, but the new one has no association with the old
         
     | 
| 
       113 
     | 
    
         
            -
                  # subscription or its topic unless the same topic is specified.
         
     | 
| 
       114 
     | 
    
         
            -
                  rpc :DeleteSubscription, DeleteSubscriptionRequest, Google::Protobuf::Empty
         
     | 
| 
       115 
     | 
    
         
            -
                  # Modifies the ack deadline for a specific message. This method is useful
         
     | 
| 
       116 
     | 
    
         
            -
                  # to indicate that more time is needed to process a message by the
         
     | 
| 
       117 
     | 
    
         
            -
                  # subscriber, or to make the message available for redelivery if the
         
     | 
| 
       118 
     | 
    
         
            -
                  # processing was interrupted. Note that this does not modify the
         
     | 
| 
       119 
     | 
    
         
            -
                  # subscription-level `ackDeadlineSeconds` used for subsequent messages.
         
     | 
| 
       120 
     | 
    
         
            -
                  rpc :ModifyAckDeadline, ModifyAckDeadlineRequest, Google::Protobuf::Empty
         
     | 
| 
       121 
     | 
    
         
            -
                  # Acknowledges the messages associated with the `ack_ids` in the
         
     | 
| 
       122 
     | 
    
         
            -
                  # `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
         
     | 
| 
       123 
     | 
    
         
            -
                  # from the subscription.
         
     | 
| 
       124 
     | 
    
         
            -
                  #
         
     | 
| 
       125 
     | 
    
         
            -
                  # Acknowledging a message whose ack deadline has expired may succeed,
         
     | 
| 
       126 
     | 
    
         
            -
                  # but such a message may be redelivered later. Acknowledging a message more
         
     | 
| 
       127 
     | 
    
         
            -
                  # than once will not result in an error.
         
     | 
| 
       128 
     | 
    
         
            -
                  rpc :Acknowledge, AcknowledgeRequest, Google::Protobuf::Empty
         
     | 
| 
       129 
     | 
    
         
            -
                  # Pulls messages from the server. The server may return `UNAVAILABLE` if
         
     | 
| 
       130 
     | 
    
         
            -
                  # there are too many concurrent pull requests pending for the given
         
     | 
| 
       131 
     | 
    
         
            -
                  # subscription.
         
     | 
| 
       132 
     | 
    
         
            -
                  rpc :Pull, PullRequest, PullResponse
         
     | 
| 
       133 
     | 
    
         
            -
                  # Establishes a stream with the server, which sends messages down to the
         
     | 
| 
       134 
     | 
    
         
            -
                  # client. The client streams acknowledgements and ack deadline modifications
         
     | 
| 
       135 
     | 
    
         
            -
                  # back to the server. The server will close the stream and return the status
         
     | 
| 
       136 
     | 
    
         
            -
                  # on any error. The server may close the stream with status `UNAVAILABLE` to
         
     | 
| 
       137 
     | 
    
         
            -
                  # reassign server-side resources, in which case, the client should
         
     | 
| 
       138 
     | 
    
         
            -
                  # re-establish the stream. Flow control can be achieved by configuring the
         
     | 
| 
       139 
     | 
    
         
            -
                  # underlying RPC channel.
         
     | 
| 
       140 
     | 
    
         
            -
                  rpc :StreamingPull, stream(StreamingPullRequest), stream(StreamingPullResponse)
         
     | 
| 
       141 
     | 
    
         
            -
                  # Modifies the `PushConfig` for a specified subscription.
         
     | 
| 
       142 
     | 
    
         
            -
                  #
         
     | 
| 
       143 
     | 
    
         
            -
                  # This may be used to change a push subscription to a pull one (signified by
         
     | 
| 
       144 
     | 
    
         
            -
                  # an empty `PushConfig`) or vice versa, or change the endpoint URL and other
         
     | 
| 
       145 
     | 
    
         
            -
                  # attributes of a push subscription. Messages will accumulate for delivery
         
     | 
| 
       146 
     | 
    
         
            -
                  # continuously through the call regardless of changes to the `PushConfig`.
         
     | 
| 
       147 
     | 
    
         
            -
                  rpc :ModifyPushConfig, ModifyPushConfigRequest, Google::Protobuf::Empty
         
     | 
| 
       148 
     | 
    
         
            -
                  # Gets the configuration details of a snapshot. Snapshots are used in
         
     | 
| 
       149 
     | 
    
         
            -
                  # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
         
     | 
| 
       150 
     | 
    
         
            -
                  # operations, which allow you to manage message acknowledgments in bulk. That
         
     | 
| 
       151 
     | 
    
         
            -
                  # is, you can set the acknowledgment state of messages in an existing
         
     | 
| 
       152 
     | 
    
         
            -
                  # subscription to the state captured by a snapshot.
         
     | 
| 
       153 
     | 
    
         
            -
                  rpc :GetSnapshot, GetSnapshotRequest, Snapshot
         
     | 
| 
       154 
     | 
    
         
            -
                  # Lists the existing snapshots. Snapshots are used in
         
     | 
| 
       155 
     | 
    
         
            -
                  # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
         
     | 
| 
       156 
     | 
    
         
            -
                  # operations, which allow
         
     | 
| 
       157 
     | 
    
         
            -
                  # you to manage message acknowledgments in bulk. That is, you can set the
         
     | 
| 
       158 
     | 
    
         
            -
                  # acknowledgment state of messages in an existing subscription to the state
         
     | 
| 
       159 
     | 
    
         
            -
                  # captured by a snapshot.
         
     | 
| 
       160 
     | 
    
         
            -
                  rpc :ListSnapshots, ListSnapshotsRequest, ListSnapshotsResponse
         
     | 
| 
       161 
     | 
    
         
            -
                  # Creates a snapshot from the requested subscription. Snapshots are used in
         
     | 
| 
       162 
     | 
    
         
            -
                  # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
         
     | 
| 
       163 
     | 
    
         
            -
                  # operations, which allow
         
     | 
| 
       164 
     | 
    
         
            -
                  # you to manage message acknowledgments in bulk. That is, you can set the
         
     | 
| 
       165 
     | 
    
         
            -
                  # acknowledgment state of messages in an existing subscription to the state
         
     | 
| 
       166 
     | 
    
         
            -
                  # captured by a snapshot.
         
     | 
| 
       167 
     | 
    
         
            -
                  # <br><br>If the snapshot already exists, returns `ALREADY_EXISTS`.
         
     | 
| 
       168 
     | 
    
         
            -
                  # If the requested subscription doesn't exist, returns `NOT_FOUND`.
         
     | 
| 
       169 
     | 
    
         
            -
                  # If the backlog in the subscription is too old -- and the resulting snapshot
         
     | 
| 
       170 
     | 
    
         
            -
                  # would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned.
         
     | 
| 
       171 
     | 
    
         
            -
                  # See also the `Snapshot.expire_time` field. If the name is not provided in
         
     | 
| 
       172 
     | 
    
         
            -
                  # the request, the server will assign a random
         
     | 
| 
       173 
     | 
    
         
            -
                  # name for this snapshot on the same project as the subscription, conforming
         
     | 
| 
       174 
     | 
    
         
            -
                  # to the
         
     | 
| 
       175 
     | 
    
         
            -
                  # [resource name
         
     | 
| 
       176 
     | 
    
         
            -
                  # format](https://cloud.google.com/pubsub/docs/admin#resource_names). The
         
     | 
| 
       177 
     | 
    
         
            -
                  # generated name is populated in the returned Snapshot object. Note that for
         
     | 
| 
       178 
     | 
    
         
            -
                  # REST API requests, you must specify a name in the request.
         
     | 
| 
       179 
     | 
    
         
            -
                  rpc :CreateSnapshot, CreateSnapshotRequest, Snapshot
         
     | 
| 
       180 
     | 
    
         
            -
                  # Updates an existing snapshot. Snapshots are used in
         
     | 
| 
       181 
     | 
    
         
            -
                  # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
         
     | 
| 
       182 
     | 
    
         
            -
                  # operations, which allow
         
     | 
| 
       183 
     | 
    
         
            -
                  # you to manage message acknowledgments in bulk. That is, you can set the
         
     | 
| 
       184 
     | 
    
         
            -
                  # acknowledgment state of messages in an existing subscription to the state
         
     | 
| 
       185 
     | 
    
         
            -
                  # captured by a snapshot.
         
     | 
| 
       186 
     | 
    
         
            -
                  rpc :UpdateSnapshot, UpdateSnapshotRequest, Snapshot
         
     | 
| 
       187 
     | 
    
         
            -
                  # Removes an existing snapshot. Snapshots are used in
         
     | 
| 
       188 
     | 
    
         
            -
                  # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
         
     | 
| 
       189 
     | 
    
         
            -
                  # operations, which allow
         
     | 
| 
       190 
     | 
    
         
            -
                  # you to manage message acknowledgments in bulk. That is, you can set the
         
     | 
| 
       191 
     | 
    
         
            -
                  # acknowledgment state of messages in an existing subscription to the state
         
     | 
| 
       192 
     | 
    
         
            -
                  # captured by a snapshot.<br><br>
         
     | 
| 
       193 
     | 
    
         
            -
                  # When the snapshot is deleted, all messages retained in the snapshot
         
     | 
| 
       194 
     | 
    
         
            -
                  # are immediately dropped. After a snapshot is deleted, a new one may be
         
     | 
| 
       195 
     | 
    
         
            -
                  # created with the same name, but the new one has no association with the old
         
     | 
| 
       196 
     | 
    
         
            -
                  # snapshot or its subscription, unless the same subscription is specified.
         
     | 
| 
       197 
     | 
    
         
            -
                  rpc :DeleteSnapshot, DeleteSnapshotRequest, Google::Protobuf::Empty
         
     | 
| 
       198 
     | 
    
         
            -
                  # Seeks an existing subscription to a point in time or to a given snapshot,
         
     | 
| 
       199 
     | 
    
         
            -
                  # whichever is provided in the request. Snapshots are used in
         
     | 
| 
       200 
     | 
    
         
            -
                  # <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
         
     | 
| 
       201 
     | 
    
         
            -
                  # operations, which allow
         
     | 
| 
       202 
     | 
    
         
            -
                  # you to manage message acknowledgments in bulk. That is, you can set the
         
     | 
| 
       203 
     | 
    
         
            -
                  # acknowledgment state of messages in an existing subscription to the state
         
     | 
| 
       204 
     | 
    
         
            -
                  # captured by a snapshot. Note that both the subscription and the snapshot
         
     | 
| 
       205 
     | 
    
         
            -
                  # must be on the same topic.
         
     | 
| 
       206 
     | 
    
         
            -
                  rpc :Seek, SeekRequest, SeekResponse
         
     | 
| 
       207 
     | 
    
         
            -
                end
         
     | 
| 
       208 
     | 
    
         
            -
             
     | 
| 
       209 
     | 
    
         
            -
                Stub = Service.rpc_stub_class
         
     | 
| 
       210 
     | 
    
         
            -
              end
         
     | 
| 
       211 
     | 
    
         
            -
            end
         
     |