google-cloud-dataflow-v1beta3 0.1.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.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google-cloud-dataflow-v1beta3.rb +21 -0
  7. data/lib/google/cloud/dataflow/v1beta3.rb +43 -0
  8. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb +48 -0
  9. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb +376 -0
  10. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb +54 -0
  11. data/lib/google/cloud/dataflow/v1beta3/jobs.rb +49 -0
  12. data/lib/google/cloud/dataflow/v1beta3/jobs/client.rb +868 -0
  13. data/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb +54 -0
  14. data/lib/google/cloud/dataflow/v1beta3/messages.rb +49 -0
  15. data/lib/google/cloud/dataflow/v1beta3/messages/client.rb +399 -0
  16. data/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb +54 -0
  17. data/lib/google/cloud/dataflow/v1beta3/metrics.rb +49 -0
  18. data/lib/google/cloud/dataflow/v1beta3/metrics/client.rb +560 -0
  19. data/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb +54 -0
  20. data/lib/google/cloud/dataflow/v1beta3/snapshots.rb +48 -0
  21. data/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb +515 -0
  22. data/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb +54 -0
  23. data/lib/google/cloud/dataflow/v1beta3/templates_service.rb +48 -0
  24. data/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb +543 -0
  25. data/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb +54 -0
  26. data/lib/google/cloud/dataflow/v1beta3/version.rb +28 -0
  27. data/lib/google/dataflow/v1beta3/environment_pb.rb +167 -0
  28. data/lib/google/dataflow/v1beta3/jobs_pb.rb +292 -0
  29. data/lib/google/dataflow/v1beta3/jobs_services_pb.rb +83 -0
  30. data/lib/google/dataflow/v1beta3/messages_pb.rb +83 -0
  31. data/lib/google/dataflow/v1beta3/messages_services_pb.rb +52 -0
  32. data/lib/google/dataflow/v1beta3/metrics_pb.rb +126 -0
  33. data/lib/google/dataflow/v1beta3/metrics_services_pb.rb +61 -0
  34. data/lib/google/dataflow/v1beta3/snapshots_pb.rb +75 -0
  35. data/lib/google/dataflow/v1beta3/snapshots_services_pb.rb +49 -0
  36. data/lib/google/dataflow/v1beta3/streaming_pb.rb +105 -0
  37. data/lib/google/dataflow/v1beta3/templates_pb.rb +213 -0
  38. data/lib/google/dataflow/v1beta3/templates_services_pb.rb +65 -0
  39. data/proto_docs/README.md +4 -0
  40. data/proto_docs/google/api/field_behavior.rb +65 -0
  41. data/proto_docs/google/api/resource.rb +283 -0
  42. data/proto_docs/google/dataflow/v1beta3/environment.rb +583 -0
  43. data/proto_docs/google/dataflow/v1beta3/jobs.rb +927 -0
  44. data/proto_docs/google/dataflow/v1beta3/messages.rb +226 -0
  45. data/proto_docs/google/dataflow/v1beta3/metrics.rb +367 -0
  46. data/proto_docs/google/dataflow/v1beta3/snapshots.rb +160 -0
  47. data/proto_docs/google/dataflow/v1beta3/streaming.rb +280 -0
  48. data/proto_docs/google/dataflow/v1beta3/templates.rb +669 -0
  49. data/proto_docs/google/protobuf/any.rb +141 -0
  50. data/proto_docs/google/protobuf/duration.rb +98 -0
  51. data/proto_docs/google/protobuf/struct.rb +96 -0
  52. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  53. data/proto_docs/google/rpc/status.rb +46 -0
  54. metadata +243 -0
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Dataflow
24
+ module V1beta3
25
+ module Jobs
26
+ # Credentials for the Jobs API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/cloud-platform",
30
+ "https://www.googleapis.com/auth/compute",
31
+ "https://www.googleapis.com/auth/compute.readonly",
32
+ "https://www.googleapis.com/auth/userinfo.email"
33
+ ]
34
+ self.env_vars = [
35
+ "DATAFLOW_CREDENTIALS",
36
+ "DATAFLOW_KEYFILE",
37
+ "GOOGLE_CLOUD_CREDENTIALS",
38
+ "GOOGLE_CLOUD_KEYFILE",
39
+ "GCLOUD_KEYFILE",
40
+ "DATAFLOW_CREDENTIALS_JSON",
41
+ "DATAFLOW_KEYFILE_JSON",
42
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
43
+ "GOOGLE_CLOUD_KEYFILE_JSON",
44
+ "GCLOUD_KEYFILE_JSON"
45
+ ]
46
+ self.paths = [
47
+ "~/.config/google_cloud/application_default_credentials.json"
48
+ ]
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/dataflow/v1beta3/version"
24
+
25
+ require "google/cloud/dataflow/v1beta3/messages/credentials"
26
+ require "google/cloud/dataflow/v1beta3/messages/client"
27
+
28
+ module Google
29
+ module Cloud
30
+ module Dataflow
31
+ module V1beta3
32
+ ##
33
+ # The Dataflow Messages API is used for monitoring the progress of
34
+ # Dataflow jobs.
35
+ #
36
+ # To load this service and instantiate a client:
37
+ #
38
+ # require "google/cloud/dataflow/v1beta3/messages"
39
+ # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new
40
+ #
41
+ module Messages
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
48
+ helper_path = ::File.join __dir__, "messages", "helpers.rb"
49
+ require "google/cloud/dataflow/v1beta3/messages/helpers" if ::File.file? helper_path
@@ -0,0 +1,399 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/dataflow/v1beta3/messages_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Dataflow
25
+ module V1beta3
26
+ module Messages
27
+ ##
28
+ # Client for the Messages service.
29
+ #
30
+ # The Dataflow Messages API is used for monitoring the progress of
31
+ # Dataflow jobs.
32
+ #
33
+ class Client
34
+ # @private
35
+ attr_reader :messages_stub
36
+
37
+ ##
38
+ # Configure the Messages Client class.
39
+ #
40
+ # See {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration}
41
+ # for a description of the configuration fields.
42
+ #
43
+ # ## Example
44
+ #
45
+ # To modify the configuration for all Messages clients:
46
+ #
47
+ # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
50
+ #
51
+ # @yield [config] Configure the Client client.
52
+ # @yieldparam config [Client::Configuration]
53
+ #
54
+ # @return [Client::Configuration]
55
+ #
56
+ def self.configure
57
+ @configure ||= begin
58
+ namespace = ["Google", "Cloud", "Dataflow", "V1beta3"]
59
+ parent_config = while namespace.any?
60
+ parent_name = namespace.join "::"
61
+ parent_const = const_get parent_name
62
+ break parent_const.configure if parent_const.respond_to? :configure
63
+ namespace.pop
64
+ end
65
+ default_config = Client::Configuration.new parent_config
66
+
67
+ default_config.timeout = 60.0
68
+
69
+ default_config
70
+ end
71
+ yield @configure if block_given?
72
+ @configure
73
+ end
74
+
75
+ ##
76
+ # Configure the Messages Client instance.
77
+ #
78
+ # The configuration is set to the derived mode, meaning that values can be changed,
79
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
80
+ # should be made on {Client.configure}.
81
+ #
82
+ # See {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration}
83
+ # for a description of the configuration fields.
84
+ #
85
+ # @yield [config] Configure the Client client.
86
+ # @yieldparam config [Client::Configuration]
87
+ #
88
+ # @return [Client::Configuration]
89
+ #
90
+ def configure
91
+ yield @config if block_given?
92
+ @config
93
+ end
94
+
95
+ ##
96
+ # Create a new Messages client object.
97
+ #
98
+ # ## Examples
99
+ #
100
+ # To create a new Messages client with the default
101
+ # configuration:
102
+ #
103
+ # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new
104
+ #
105
+ # To create a new Messages client with a custom
106
+ # configuration:
107
+ #
108
+ # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config|
109
+ # config.timeout = 10.0
110
+ # end
111
+ #
112
+ # @yield [config] Configure the Messages client.
113
+ # @yieldparam config [Client::Configuration]
114
+ #
115
+ def initialize
116
+ # These require statements are intentionally placed here to initialize
117
+ # the gRPC module only when it's required.
118
+ # See https://github.com/googleapis/toolkit/issues/446
119
+ require "gapic/grpc"
120
+ require "google/dataflow/v1beta3/messages_services_pb"
121
+
122
+ # Create the configuration object
123
+ @config = Configuration.new Client.configure
124
+
125
+ # Yield the configuration if needed
126
+ yield @config if block_given?
127
+
128
+ # Create credentials
129
+ credentials = @config.credentials
130
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
131
+ # but only if the default endpoint does not have a region prefix.
132
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
133
+ @config.endpoint == Client.configure.endpoint &&
134
+ !@config.endpoint.split(".").first.include?("-")
135
+ credentials ||= Credentials.default scope: @config.scope,
136
+ enable_self_signed_jwt: enable_self_signed_jwt
137
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
138
+ credentials = Credentials.new credentials, scope: @config.scope
139
+ end
140
+ @quota_project_id = @config.quota_project
141
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
142
+
143
+ @messages_stub = ::Gapic::ServiceStub.new(
144
+ ::Google::Cloud::Dataflow::V1beta3::MessagesV1Beta3::Stub,
145
+ credentials: credentials,
146
+ endpoint: @config.endpoint,
147
+ channel_args: @config.channel_args,
148
+ interceptors: @config.interceptors
149
+ )
150
+ end
151
+
152
+ # Service calls
153
+
154
+ ##
155
+ # Request the job status.
156
+ #
157
+ # To request the status of a job, we recommend using
158
+ # `projects.locations.jobs.messages.list` with a [regional endpoint]
159
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
160
+ # `projects.jobs.messages.list` is not recommended, as you can only request
161
+ # the status of jobs that are running in `us-central1`.
162
+ #
163
+ # @overload list_job_messages(request, options = nil)
164
+ # Pass arguments to `list_job_messages` via a request object, either of type
165
+ # {::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest} or an equivalent Hash.
166
+ #
167
+ # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, ::Hash]
168
+ # A request object representing the call parameters. Required. To specify no
169
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
170
+ # @param options [::Gapic::CallOptions, ::Hash]
171
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
172
+ #
173
+ # @overload list_job_messages(project_id: nil, job_id: nil, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil)
174
+ # Pass arguments to `list_job_messages` via keyword arguments. Note that at
175
+ # least one keyword argument is required. To specify no parameters, or to keep all
176
+ # the default parameter values, pass an empty Hash as a request object (see above).
177
+ #
178
+ # @param project_id [::String]
179
+ # A project id.
180
+ # @param job_id [::String]
181
+ # The job to get messages about.
182
+ # @param minimum_importance [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance]
183
+ # Filter to only get messages with importance >= level
184
+ # @param page_size [::Integer]
185
+ # If specified, determines the maximum number of messages to
186
+ # return. If unspecified, the service may choose an appropriate
187
+ # default, or may return an arbitrarily large number of results.
188
+ # @param page_token [::String]
189
+ # If supplied, this should be the value of next_page_token returned
190
+ # by an earlier call. This will cause the next page of results to
191
+ # be returned.
192
+ # @param start_time [::Google::Protobuf::Timestamp, ::Hash]
193
+ # If specified, return only messages with timestamps >= start_time.
194
+ # The default is the job creation time (i.e. beginning of messages).
195
+ # @param end_time [::Google::Protobuf::Timestamp, ::Hash]
196
+ # Return only messages with timestamps < end_time. The default is now
197
+ # (i.e. return up to the latest messages available).
198
+ # @param location [::String]
199
+ # The [regional endpoint]
200
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
201
+ # contains the job specified by job_id.
202
+ #
203
+ # @yield [response, operation] Access the result along with the RPC operation
204
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>]
205
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
206
+ #
207
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>]
208
+ #
209
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
210
+ #
211
+ def list_job_messages request, options = nil
212
+ raise ::ArgumentError, "request must be provided" if request.nil?
213
+
214
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest
215
+
216
+ # Converts hash and nil to an options object
217
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
218
+
219
+ # Customize the options with defaults
220
+ metadata = @config.rpcs.list_job_messages.metadata.to_h
221
+
222
+ # Set x-goog-api-client and x-goog-user-project headers
223
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
224
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
225
+ gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION
226
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
227
+
228
+ options.apply_defaults timeout: @config.rpcs.list_job_messages.timeout,
229
+ metadata: metadata,
230
+ retry_policy: @config.rpcs.list_job_messages.retry_policy
231
+ options.apply_defaults metadata: @config.metadata,
232
+ retry_policy: @config.retry_policy
233
+
234
+ @messages_stub.call_rpc :list_job_messages, request, options: options do |response, operation|
235
+ response = ::Gapic::PagedEnumerable.new @messages_stub, :list_job_messages, request, response, operation, options
236
+ yield response, operation if block_given?
237
+ return response
238
+ end
239
+ rescue ::GRPC::BadStatus => e
240
+ raise ::Google::Cloud::Error.from_error(e)
241
+ end
242
+
243
+ ##
244
+ # Configuration class for the Messages API.
245
+ #
246
+ # This class represents the configuration for Messages,
247
+ # providing control over timeouts, retry behavior, logging, transport
248
+ # parameters, and other low-level controls. Certain parameters can also be
249
+ # applied individually to specific RPCs. See
250
+ # {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration::Rpcs}
251
+ # for a list of RPCs that can be configured independently.
252
+ #
253
+ # Configuration can be applied globally to all clients, or to a single client
254
+ # on construction.
255
+ #
256
+ # # Examples
257
+ #
258
+ # To modify the global config, setting the timeout for list_job_messages
259
+ # to 20 seconds, and all remaining timeouts to 10 seconds:
260
+ #
261
+ # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config|
262
+ # config.timeout = 10.0
263
+ # config.rpcs.list_job_messages.timeout = 20.0
264
+ # end
265
+ #
266
+ # To apply the above configuration only to a new client:
267
+ #
268
+ # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config|
269
+ # config.timeout = 10.0
270
+ # config.rpcs.list_job_messages.timeout = 20.0
271
+ # end
272
+ #
273
+ # @!attribute [rw] endpoint
274
+ # The hostname or hostname:port of the service endpoint.
275
+ # Defaults to `"dataflow.googleapis.com"`.
276
+ # @return [::String]
277
+ # @!attribute [rw] credentials
278
+ # Credentials to send with calls. You may provide any of the following types:
279
+ # * (`String`) The path to a service account key file in JSON format
280
+ # * (`Hash`) A service account key as a Hash
281
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
282
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
283
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
284
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
285
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
286
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
287
+ # * (`nil`) indicating no credentials
288
+ # @return [::Object]
289
+ # @!attribute [rw] scope
290
+ # The OAuth scopes
291
+ # @return [::Array<::String>]
292
+ # @!attribute [rw] lib_name
293
+ # The library name as recorded in instrumentation and logging
294
+ # @return [::String]
295
+ # @!attribute [rw] lib_version
296
+ # The library version as recorded in instrumentation and logging
297
+ # @return [::String]
298
+ # @!attribute [rw] channel_args
299
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
300
+ # `GRPC::Core::Channel` object is provided as the credential.
301
+ # @return [::Hash]
302
+ # @!attribute [rw] interceptors
303
+ # An array of interceptors that are run before calls are executed.
304
+ # @return [::Array<::GRPC::ClientInterceptor>]
305
+ # @!attribute [rw] timeout
306
+ # The call timeout in seconds.
307
+ # @return [::Numeric]
308
+ # @!attribute [rw] metadata
309
+ # Additional gRPC headers to be sent with the call.
310
+ # @return [::Hash{::Symbol=>::String}]
311
+ # @!attribute [rw] retry_policy
312
+ # The retry policy. The value is a hash with the following keys:
313
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
314
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
315
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
316
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
317
+ # trigger a retry.
318
+ # @return [::Hash]
319
+ # @!attribute [rw] quota_project
320
+ # A separate project against which to charge quota.
321
+ # @return [::String]
322
+ #
323
+ class Configuration
324
+ extend ::Gapic::Config
325
+
326
+ config_attr :endpoint, "dataflow.googleapis.com", ::String
327
+ config_attr :credentials, nil do |value|
328
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
329
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
330
+ allowed.any? { |klass| klass === value }
331
+ end
332
+ config_attr :scope, nil, ::String, ::Array, nil
333
+ config_attr :lib_name, nil, ::String, nil
334
+ config_attr :lib_version, nil, ::String, nil
335
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
336
+ config_attr :interceptors, nil, ::Array, nil
337
+ config_attr :timeout, nil, ::Numeric, nil
338
+ config_attr :metadata, nil, ::Hash, nil
339
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
340
+ config_attr :quota_project, nil, ::String, nil
341
+
342
+ # @private
343
+ def initialize parent_config = nil
344
+ @parent_config = parent_config unless parent_config.nil?
345
+
346
+ yield self if block_given?
347
+ end
348
+
349
+ ##
350
+ # Configurations for individual RPCs
351
+ # @return [Rpcs]
352
+ #
353
+ def rpcs
354
+ @rpcs ||= begin
355
+ parent_rpcs = nil
356
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
357
+ Rpcs.new parent_rpcs
358
+ end
359
+ end
360
+
361
+ ##
362
+ # Configuration RPC class for the Messages API.
363
+ #
364
+ # Includes fields providing the configuration for each RPC in this service.
365
+ # Each configuration object is of type `Gapic::Config::Method` and includes
366
+ # the following configuration fields:
367
+ #
368
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
369
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
370
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
371
+ # include the following keys:
372
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
373
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
374
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
375
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
376
+ # trigger a retry.
377
+ #
378
+ class Rpcs
379
+ ##
380
+ # RPC-specific configuration for `list_job_messages`
381
+ # @return [::Gapic::Config::Method]
382
+ #
383
+ attr_reader :list_job_messages
384
+
385
+ # @private
386
+ def initialize parent_rpcs = nil
387
+ list_job_messages_config = parent_rpcs.list_job_messages if parent_rpcs.respond_to? :list_job_messages
388
+ @list_job_messages = ::Gapic::Config::Method.new list_job_messages_config
389
+
390
+ yield self if block_given?
391
+ end
392
+ end
393
+ end
394
+ end
395
+ end
396
+ end
397
+ end
398
+ end
399
+ end