google-apps-meet-v2 0.a → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/apps/meet/v2/conference_records_service/client.rb +1612 -0
  6. data/lib/google/apps/meet/v2/conference_records_service/credentials.rb +48 -0
  7. data/lib/google/apps/meet/v2/conference_records_service/paths.rb +136 -0
  8. data/lib/google/apps/meet/v2/conference_records_service/rest/client.rb +1510 -0
  9. data/lib/google/apps/meet/v2/conference_records_service/rest/service_stub.rb +775 -0
  10. data/lib/google/apps/meet/v2/conference_records_service/rest.rb +52 -0
  11. data/lib/google/apps/meet/v2/conference_records_service.rb +55 -0
  12. data/lib/google/apps/meet/v2/resource_pb.rb +64 -0
  13. data/lib/google/apps/meet/v2/rest.rb +38 -0
  14. data/lib/google/apps/meet/v2/service_pb.rb +73 -0
  15. data/lib/google/apps/meet/v2/service_services_pb.rb +109 -0
  16. data/lib/google/apps/meet/v2/spaces_service/client.rb +706 -0
  17. data/lib/google/apps/meet/v2/spaces_service/credentials.rb +48 -0
  18. data/lib/google/apps/meet/v2/spaces_service/paths.rb +61 -0
  19. data/lib/google/apps/meet/v2/spaces_service/rest/client.rb +660 -0
  20. data/lib/google/apps/meet/v2/spaces_service/rest/service_stub.rb +306 -0
  21. data/lib/google/apps/meet/v2/spaces_service/rest.rb +52 -0
  22. data/lib/google/apps/meet/v2/spaces_service.rb +55 -0
  23. data/lib/google/apps/meet/v2/version.rb +7 -2
  24. data/lib/google/apps/meet/v2.rb +46 -0
  25. data/lib/google-apps-meet-v2.rb +21 -0
  26. data/proto_docs/README.md +4 -0
  27. data/proto_docs/google/api/client.rb +395 -0
  28. data/proto_docs/google/api/field_behavior.rb +85 -0
  29. data/proto_docs/google/api/launch_stage.rb +71 -0
  30. data/proto_docs/google/api/resource.rb +222 -0
  31. data/proto_docs/google/apps/meet/v2/resource.rb +367 -0
  32. data/proto_docs/google/apps/meet/v2/service.rb +353 -0
  33. data/proto_docs/google/protobuf/duration.rb +98 -0
  34. data/proto_docs/google/protobuf/empty.rb +34 -0
  35. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  36. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  37. metadata +76 -11
@@ -0,0 +1,1612 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/apps/meet/v2/service_pb"
21
+
22
+ module Google
23
+ module Apps
24
+ module Meet
25
+ module V2
26
+ module ConferenceRecordsService
27
+ ##
28
+ # Client for the ConferenceRecordsService service.
29
+ #
30
+ # REST API for services dealing with conference records.
31
+ #
32
+ class Client
33
+ # @private
34
+ DEFAULT_ENDPOINT_TEMPLATE = "meet.$UNIVERSE_DOMAIN$"
35
+
36
+ include Paths
37
+
38
+ # @private
39
+ attr_reader :conference_records_service_stub
40
+
41
+ ##
42
+ # Configure the ConferenceRecordsService Client class.
43
+ #
44
+ # See {::Google::Apps::Meet::V2::ConferenceRecordsService::Client::Configuration}
45
+ # for a description of the configuration fields.
46
+ #
47
+ # @example
48
+ #
49
+ # # Modify the configuration for all ConferenceRecordsService clients
50
+ # ::Google::Apps::Meet::V2::ConferenceRecordsService::Client.configure do |config|
51
+ # config.timeout = 10.0
52
+ # end
53
+ #
54
+ # @yield [config] Configure the Client client.
55
+ # @yieldparam config [Client::Configuration]
56
+ #
57
+ # @return [Client::Configuration]
58
+ #
59
+ def self.configure
60
+ @configure ||= begin
61
+ namespace = ["Google", "Apps", "Meet", "V2"]
62
+ parent_config = while namespace.any?
63
+ parent_name = namespace.join "::"
64
+ parent_const = const_get parent_name
65
+ break parent_const.configure if parent_const.respond_to? :configure
66
+ namespace.pop
67
+ end
68
+ default_config = Client::Configuration.new parent_config
69
+
70
+ default_config.rpcs.get_conference_record.timeout = 60.0
71
+ default_config.rpcs.get_conference_record.retry_policy = {
72
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
73
+ }
74
+
75
+ default_config.rpcs.list_conference_records.timeout = 60.0
76
+ default_config.rpcs.list_conference_records.retry_policy = {
77
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
78
+ }
79
+
80
+ default_config.rpcs.get_participant.timeout = 60.0
81
+ default_config.rpcs.get_participant.retry_policy = {
82
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
83
+ }
84
+
85
+ default_config.rpcs.list_participants.timeout = 60.0
86
+ default_config.rpcs.list_participants.retry_policy = {
87
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
88
+ }
89
+
90
+ default_config.rpcs.get_participant_session.timeout = 60.0
91
+ default_config.rpcs.get_participant_session.retry_policy = {
92
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
93
+ }
94
+
95
+ default_config.rpcs.list_participant_sessions.timeout = 60.0
96
+ default_config.rpcs.list_participant_sessions.retry_policy = {
97
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
98
+ }
99
+
100
+ default_config.rpcs.get_recording.timeout = 60.0
101
+ default_config.rpcs.get_recording.retry_policy = {
102
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
103
+ }
104
+
105
+ default_config.rpcs.list_recordings.timeout = 60.0
106
+ default_config.rpcs.list_recordings.retry_policy = {
107
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
108
+ }
109
+
110
+ default_config.rpcs.get_transcript.timeout = 60.0
111
+ default_config.rpcs.get_transcript.retry_policy = {
112
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
113
+ }
114
+
115
+ default_config.rpcs.list_transcripts.timeout = 60.0
116
+ default_config.rpcs.list_transcripts.retry_policy = {
117
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
118
+ }
119
+
120
+ default_config.rpcs.get_transcript_entry.timeout = 60.0
121
+ default_config.rpcs.get_transcript_entry.retry_policy = {
122
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
123
+ }
124
+
125
+ default_config.rpcs.list_transcript_entries.timeout = 60.0
126
+ default_config.rpcs.list_transcript_entries.retry_policy = {
127
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
128
+ }
129
+
130
+ default_config
131
+ end
132
+ yield @configure if block_given?
133
+ @configure
134
+ end
135
+
136
+ ##
137
+ # Configure the ConferenceRecordsService Client instance.
138
+ #
139
+ # The configuration is set to the derived mode, meaning that values can be changed,
140
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
141
+ # should be made on {Client.configure}.
142
+ #
143
+ # See {::Google::Apps::Meet::V2::ConferenceRecordsService::Client::Configuration}
144
+ # for a description of the configuration fields.
145
+ #
146
+ # @yield [config] Configure the Client client.
147
+ # @yieldparam config [Client::Configuration]
148
+ #
149
+ # @return [Client::Configuration]
150
+ #
151
+ def configure
152
+ yield @config if block_given?
153
+ @config
154
+ end
155
+
156
+ ##
157
+ # The effective universe domain
158
+ #
159
+ # @return [String]
160
+ #
161
+ def universe_domain
162
+ @conference_records_service_stub.universe_domain
163
+ end
164
+
165
+ ##
166
+ # Create a new ConferenceRecordsService client object.
167
+ #
168
+ # @example
169
+ #
170
+ # # Create a client using the default configuration
171
+ # client = ::Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
172
+ #
173
+ # # Create a client using a custom configuration
174
+ # client = ::Google::Apps::Meet::V2::ConferenceRecordsService::Client.new do |config|
175
+ # config.timeout = 10.0
176
+ # end
177
+ #
178
+ # @yield [config] Configure the ConferenceRecordsService client.
179
+ # @yieldparam config [Client::Configuration]
180
+ #
181
+ def initialize
182
+ # These require statements are intentionally placed here to initialize
183
+ # the gRPC module only when it's required.
184
+ # See https://github.com/googleapis/toolkit/issues/446
185
+ require "gapic/grpc"
186
+ require "google/apps/meet/v2/service_services_pb"
187
+
188
+ # Create the configuration object
189
+ @config = Configuration.new Client.configure
190
+
191
+ # Yield the configuration if needed
192
+ yield @config if block_given?
193
+
194
+ # Create credentials
195
+ credentials = @config.credentials
196
+ # Use self-signed JWT if the endpoint is unchanged from default,
197
+ # but only if the default endpoint does not have a region prefix.
198
+ enable_self_signed_jwt = @config.endpoint.nil? ||
199
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
200
+ !@config.endpoint.split(".").first.include?("-"))
201
+ credentials ||= Credentials.default scope: @config.scope,
202
+ enable_self_signed_jwt: enable_self_signed_jwt
203
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
204
+ credentials = Credentials.new credentials, scope: @config.scope
205
+ end
206
+ @quota_project_id = @config.quota_project
207
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
208
+
209
+ @conference_records_service_stub = ::Gapic::ServiceStub.new(
210
+ ::Google::Apps::Meet::V2::ConferenceRecordsService::Stub,
211
+ credentials: credentials,
212
+ endpoint: @config.endpoint,
213
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
214
+ universe_domain: @config.universe_domain,
215
+ channel_args: @config.channel_args,
216
+ interceptors: @config.interceptors,
217
+ channel_pool_config: @config.channel_pool
218
+ )
219
+ end
220
+
221
+ # Service calls
222
+
223
+ ##
224
+ # Gets a conference record by conference ID.
225
+ #
226
+ # @overload get_conference_record(request, options = nil)
227
+ # Pass arguments to `get_conference_record` via a request object, either of type
228
+ # {::Google::Apps::Meet::V2::GetConferenceRecordRequest} or an equivalent Hash.
229
+ #
230
+ # @param request [::Google::Apps::Meet::V2::GetConferenceRecordRequest, ::Hash]
231
+ # A request object representing the call parameters. Required. To specify no
232
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
233
+ # @param options [::Gapic::CallOptions, ::Hash]
234
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
235
+ #
236
+ # @overload get_conference_record(name: nil)
237
+ # Pass arguments to `get_conference_record` via keyword arguments. Note that at
238
+ # least one keyword argument is required. To specify no parameters, or to keep all
239
+ # the default parameter values, pass an empty Hash as a request object (see above).
240
+ #
241
+ # @param name [::String]
242
+ # Required. Resource name of the conference.
243
+ #
244
+ # @yield [response, operation] Access the result along with the RPC operation
245
+ # @yieldparam response [::Google::Apps::Meet::V2::ConferenceRecord]
246
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
247
+ #
248
+ # @return [::Google::Apps::Meet::V2::ConferenceRecord]
249
+ #
250
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
251
+ #
252
+ # @example Basic example
253
+ # require "google/apps/meet/v2"
254
+ #
255
+ # # Create a client object. The client can be reused for multiple calls.
256
+ # client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
257
+ #
258
+ # # Create a request. To set request fields, pass in keyword arguments.
259
+ # request = Google::Apps::Meet::V2::GetConferenceRecordRequest.new
260
+ #
261
+ # # Call the get_conference_record method.
262
+ # result = client.get_conference_record request
263
+ #
264
+ # # The returned object is of type Google::Apps::Meet::V2::ConferenceRecord.
265
+ # p result
266
+ #
267
+ def get_conference_record request, options = nil
268
+ raise ::ArgumentError, "request must be provided" if request.nil?
269
+
270
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::GetConferenceRecordRequest
271
+
272
+ # Converts hash and nil to an options object
273
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
274
+
275
+ # Customize the options with defaults
276
+ metadata = @config.rpcs.get_conference_record.metadata.to_h
277
+
278
+ # Set x-goog-api-client and x-goog-user-project headers
279
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
280
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
281
+ gapic_version: ::Google::Apps::Meet::V2::VERSION
282
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
283
+
284
+ header_params = {}
285
+ if request.name
286
+ header_params["name"] = request.name
287
+ end
288
+
289
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
290
+ metadata[:"x-goog-request-params"] ||= request_params_header
291
+
292
+ options.apply_defaults timeout: @config.rpcs.get_conference_record.timeout,
293
+ metadata: metadata,
294
+ retry_policy: @config.rpcs.get_conference_record.retry_policy
295
+
296
+ options.apply_defaults timeout: @config.timeout,
297
+ metadata: @config.metadata,
298
+ retry_policy: @config.retry_policy
299
+
300
+ @conference_records_service_stub.call_rpc :get_conference_record, request, options: options do |response, operation|
301
+ yield response, operation if block_given?
302
+ return response
303
+ end
304
+ rescue ::GRPC::BadStatus => e
305
+ raise ::Google::Cloud::Error.from_error(e)
306
+ end
307
+
308
+ ##
309
+ # Lists the conference records. By default, ordered by start time and in
310
+ # descending order.
311
+ #
312
+ # @overload list_conference_records(request, options = nil)
313
+ # Pass arguments to `list_conference_records` via a request object, either of type
314
+ # {::Google::Apps::Meet::V2::ListConferenceRecordsRequest} or an equivalent Hash.
315
+ #
316
+ # @param request [::Google::Apps::Meet::V2::ListConferenceRecordsRequest, ::Hash]
317
+ # A request object representing the call parameters. Required. To specify no
318
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
319
+ # @param options [::Gapic::CallOptions, ::Hash]
320
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
321
+ #
322
+ # @overload list_conference_records(page_size: nil, page_token: nil, filter: nil)
323
+ # Pass arguments to `list_conference_records` via keyword arguments. Note that at
324
+ # least one keyword argument is required. To specify no parameters, or to keep all
325
+ # the default parameter values, pass an empty Hash as a request object (see above).
326
+ #
327
+ # @param page_size [::Integer]
328
+ # Optional. Maximum number of conference records to return. The service might
329
+ # return fewer than this value. If unspecified, at most 25 conference records
330
+ # are returned. The maximum value is 100; values above 100 are coerced to
331
+ # 100. Maximum might change in the future.
332
+ # @param page_token [::String]
333
+ # Optional. Page token returned from previous List Call.
334
+ # @param filter [::String]
335
+ # Optional. User specified filtering condition in [EBNF
336
+ # format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
337
+ # The following are the filterable fields:
338
+ #
339
+ # * `space.meeting_code`
340
+ # * `space.name`
341
+ # * `start_time`
342
+ # * `end_time`
343
+ #
344
+ # For example, `space.meeting_code = "abc-mnop-xyz"`.
345
+ #
346
+ # @yield [response, operation] Access the result along with the RPC operation
347
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::ConferenceRecord>]
348
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
349
+ #
350
+ # @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::ConferenceRecord>]
351
+ #
352
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
353
+ #
354
+ # @example Basic example
355
+ # require "google/apps/meet/v2"
356
+ #
357
+ # # Create a client object. The client can be reused for multiple calls.
358
+ # client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
359
+ #
360
+ # # Create a request. To set request fields, pass in keyword arguments.
361
+ # request = Google::Apps::Meet::V2::ListConferenceRecordsRequest.new
362
+ #
363
+ # # Call the list_conference_records method.
364
+ # result = client.list_conference_records request
365
+ #
366
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
367
+ # # over elements, and API calls will be issued to fetch pages as needed.
368
+ # result.each do |item|
369
+ # # Each element is of type ::Google::Apps::Meet::V2::ConferenceRecord.
370
+ # p item
371
+ # end
372
+ #
373
+ def list_conference_records request, options = nil
374
+ raise ::ArgumentError, "request must be provided" if request.nil?
375
+
376
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::ListConferenceRecordsRequest
377
+
378
+ # Converts hash and nil to an options object
379
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
380
+
381
+ # Customize the options with defaults
382
+ metadata = @config.rpcs.list_conference_records.metadata.to_h
383
+
384
+ # Set x-goog-api-client and x-goog-user-project headers
385
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
386
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
387
+ gapic_version: ::Google::Apps::Meet::V2::VERSION
388
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
389
+
390
+ options.apply_defaults timeout: @config.rpcs.list_conference_records.timeout,
391
+ metadata: metadata,
392
+ retry_policy: @config.rpcs.list_conference_records.retry_policy
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
396
+ retry_policy: @config.retry_policy
397
+
398
+ @conference_records_service_stub.call_rpc :list_conference_records, request, options: options do |response, operation|
399
+ response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_conference_records, request, response, operation, options
400
+ yield response, operation if block_given?
401
+ return response
402
+ end
403
+ rescue ::GRPC::BadStatus => e
404
+ raise ::Google::Cloud::Error.from_error(e)
405
+ end
406
+
407
+ ##
408
+ # Gets a participant by participant ID.
409
+ #
410
+ # @overload get_participant(request, options = nil)
411
+ # Pass arguments to `get_participant` via a request object, either of type
412
+ # {::Google::Apps::Meet::V2::GetParticipantRequest} or an equivalent Hash.
413
+ #
414
+ # @param request [::Google::Apps::Meet::V2::GetParticipantRequest, ::Hash]
415
+ # A request object representing the call parameters. Required. To specify no
416
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
417
+ # @param options [::Gapic::CallOptions, ::Hash]
418
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
419
+ #
420
+ # @overload get_participant(name: nil)
421
+ # Pass arguments to `get_participant` via keyword arguments. Note that at
422
+ # least one keyword argument is required. To specify no parameters, or to keep all
423
+ # the default parameter values, pass an empty Hash as a request object (see above).
424
+ #
425
+ # @param name [::String]
426
+ # Required. Resource name of the participant.
427
+ #
428
+ # @yield [response, operation] Access the result along with the RPC operation
429
+ # @yieldparam response [::Google::Apps::Meet::V2::Participant]
430
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
431
+ #
432
+ # @return [::Google::Apps::Meet::V2::Participant]
433
+ #
434
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
435
+ #
436
+ # @example Basic example
437
+ # require "google/apps/meet/v2"
438
+ #
439
+ # # Create a client object. The client can be reused for multiple calls.
440
+ # client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
441
+ #
442
+ # # Create a request. To set request fields, pass in keyword arguments.
443
+ # request = Google::Apps::Meet::V2::GetParticipantRequest.new
444
+ #
445
+ # # Call the get_participant method.
446
+ # result = client.get_participant request
447
+ #
448
+ # # The returned object is of type Google::Apps::Meet::V2::Participant.
449
+ # p result
450
+ #
451
+ def get_participant request, options = nil
452
+ raise ::ArgumentError, "request must be provided" if request.nil?
453
+
454
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::GetParticipantRequest
455
+
456
+ # Converts hash and nil to an options object
457
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
458
+
459
+ # Customize the options with defaults
460
+ metadata = @config.rpcs.get_participant.metadata.to_h
461
+
462
+ # Set x-goog-api-client and x-goog-user-project headers
463
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
464
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
465
+ gapic_version: ::Google::Apps::Meet::V2::VERSION
466
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
467
+
468
+ header_params = {}
469
+ if request.name
470
+ header_params["name"] = request.name
471
+ end
472
+
473
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
474
+ metadata[:"x-goog-request-params"] ||= request_params_header
475
+
476
+ options.apply_defaults timeout: @config.rpcs.get_participant.timeout,
477
+ metadata: metadata,
478
+ retry_policy: @config.rpcs.get_participant.retry_policy
479
+
480
+ options.apply_defaults timeout: @config.timeout,
481
+ metadata: @config.metadata,
482
+ retry_policy: @config.retry_policy
483
+
484
+ @conference_records_service_stub.call_rpc :get_participant, request, options: options do |response, operation|
485
+ yield response, operation if block_given?
486
+ return response
487
+ end
488
+ rescue ::GRPC::BadStatus => e
489
+ raise ::Google::Cloud::Error.from_error(e)
490
+ end
491
+
492
+ ##
493
+ # Lists the participants in a conference record. By default, ordered by join
494
+ # time and in descending order. This API supports `fields` as standard
495
+ # parameters like every other API. However, when the `fields` request
496
+ # parameter is omitted, this API defaults to `'participants/*,
497
+ # next_page_token'`.
498
+ #
499
+ # @overload list_participants(request, options = nil)
500
+ # Pass arguments to `list_participants` via a request object, either of type
501
+ # {::Google::Apps::Meet::V2::ListParticipantsRequest} or an equivalent Hash.
502
+ #
503
+ # @param request [::Google::Apps::Meet::V2::ListParticipantsRequest, ::Hash]
504
+ # A request object representing the call parameters. Required. To specify no
505
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
506
+ # @param options [::Gapic::CallOptions, ::Hash]
507
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
508
+ #
509
+ # @overload list_participants(parent: nil, page_size: nil, page_token: nil, filter: nil)
510
+ # Pass arguments to `list_participants` via keyword arguments. Note that at
511
+ # least one keyword argument is required. To specify no parameters, or to keep all
512
+ # the default parameter values, pass an empty Hash as a request object (see above).
513
+ #
514
+ # @param parent [::String]
515
+ # Required. Format: `conferenceRecords/{conference_record}`
516
+ # @param page_size [::Integer]
517
+ # Maximum number of participants to return. The service might return fewer
518
+ # than this value.
519
+ # If unspecified, at most 100 participants are returned.
520
+ # The maximum value is 250; values above 250 are coerced to 250.
521
+ # Maximum might change in the future.
522
+ # @param page_token [::String]
523
+ # Page token returned from previous List Call.
524
+ # @param filter [::String]
525
+ # Optional. User specified filtering condition in [EBNF
526
+ # format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
527
+ # The following are the filterable fields:
528
+ #
529
+ # * `earliest_start_time`
530
+ # * `latest_end_time`
531
+ #
532
+ # For example, `latest_end_time IS NULL` returns active participants in
533
+ # the conference.
534
+ #
535
+ # @yield [response, operation] Access the result along with the RPC operation
536
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::Participant>]
537
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
538
+ #
539
+ # @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::Participant>]
540
+ #
541
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
542
+ #
543
+ # @example Basic example
544
+ # require "google/apps/meet/v2"
545
+ #
546
+ # # Create a client object. The client can be reused for multiple calls.
547
+ # client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
548
+ #
549
+ # # Create a request. To set request fields, pass in keyword arguments.
550
+ # request = Google::Apps::Meet::V2::ListParticipantsRequest.new
551
+ #
552
+ # # Call the list_participants method.
553
+ # result = client.list_participants request
554
+ #
555
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
556
+ # # over elements, and API calls will be issued to fetch pages as needed.
557
+ # result.each do |item|
558
+ # # Each element is of type ::Google::Apps::Meet::V2::Participant.
559
+ # p item
560
+ # end
561
+ #
562
+ def list_participants request, options = nil
563
+ raise ::ArgumentError, "request must be provided" if request.nil?
564
+
565
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::ListParticipantsRequest
566
+
567
+ # Converts hash and nil to an options object
568
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
569
+
570
+ # Customize the options with defaults
571
+ metadata = @config.rpcs.list_participants.metadata.to_h
572
+
573
+ # Set x-goog-api-client and x-goog-user-project headers
574
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
575
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
576
+ gapic_version: ::Google::Apps::Meet::V2::VERSION
577
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
578
+
579
+ header_params = {}
580
+ if request.parent
581
+ header_params["parent"] = request.parent
582
+ end
583
+
584
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
585
+ metadata[:"x-goog-request-params"] ||= request_params_header
586
+
587
+ options.apply_defaults timeout: @config.rpcs.list_participants.timeout,
588
+ metadata: metadata,
589
+ retry_policy: @config.rpcs.list_participants.retry_policy
590
+
591
+ options.apply_defaults timeout: @config.timeout,
592
+ metadata: @config.metadata,
593
+ retry_policy: @config.retry_policy
594
+
595
+ @conference_records_service_stub.call_rpc :list_participants, request, options: options do |response, operation|
596
+ response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_participants, request, response, operation, options
597
+ yield response, operation if block_given?
598
+ return response
599
+ end
600
+ rescue ::GRPC::BadStatus => e
601
+ raise ::Google::Cloud::Error.from_error(e)
602
+ end
603
+
604
+ ##
605
+ # Gets a participant session by participant session ID.
606
+ #
607
+ # @overload get_participant_session(request, options = nil)
608
+ # Pass arguments to `get_participant_session` via a request object, either of type
609
+ # {::Google::Apps::Meet::V2::GetParticipantSessionRequest} or an equivalent Hash.
610
+ #
611
+ # @param request [::Google::Apps::Meet::V2::GetParticipantSessionRequest, ::Hash]
612
+ # A request object representing the call parameters. Required. To specify no
613
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
614
+ # @param options [::Gapic::CallOptions, ::Hash]
615
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
616
+ #
617
+ # @overload get_participant_session(name: nil)
618
+ # Pass arguments to `get_participant_session` via keyword arguments. Note that at
619
+ # least one keyword argument is required. To specify no parameters, or to keep all
620
+ # the default parameter values, pass an empty Hash as a request object (see above).
621
+ #
622
+ # @param name [::String]
623
+ # Required. Resource name of the participant.
624
+ #
625
+ # @yield [response, operation] Access the result along with the RPC operation
626
+ # @yieldparam response [::Google::Apps::Meet::V2::ParticipantSession]
627
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
628
+ #
629
+ # @return [::Google::Apps::Meet::V2::ParticipantSession]
630
+ #
631
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
632
+ #
633
+ # @example Basic example
634
+ # require "google/apps/meet/v2"
635
+ #
636
+ # # Create a client object. The client can be reused for multiple calls.
637
+ # client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
638
+ #
639
+ # # Create a request. To set request fields, pass in keyword arguments.
640
+ # request = Google::Apps::Meet::V2::GetParticipantSessionRequest.new
641
+ #
642
+ # # Call the get_participant_session method.
643
+ # result = client.get_participant_session request
644
+ #
645
+ # # The returned object is of type Google::Apps::Meet::V2::ParticipantSession.
646
+ # p result
647
+ #
648
+ def get_participant_session request, options = nil
649
+ raise ::ArgumentError, "request must be provided" if request.nil?
650
+
651
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::GetParticipantSessionRequest
652
+
653
+ # Converts hash and nil to an options object
654
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
655
+
656
+ # Customize the options with defaults
657
+ metadata = @config.rpcs.get_participant_session.metadata.to_h
658
+
659
+ # Set x-goog-api-client and x-goog-user-project headers
660
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
661
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
662
+ gapic_version: ::Google::Apps::Meet::V2::VERSION
663
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
664
+
665
+ header_params = {}
666
+ if request.name
667
+ header_params["name"] = request.name
668
+ end
669
+
670
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
671
+ metadata[:"x-goog-request-params"] ||= request_params_header
672
+
673
+ options.apply_defaults timeout: @config.rpcs.get_participant_session.timeout,
674
+ metadata: metadata,
675
+ retry_policy: @config.rpcs.get_participant_session.retry_policy
676
+
677
+ options.apply_defaults timeout: @config.timeout,
678
+ metadata: @config.metadata,
679
+ retry_policy: @config.retry_policy
680
+
681
+ @conference_records_service_stub.call_rpc :get_participant_session, request, options: options do |response, operation|
682
+ yield response, operation if block_given?
683
+ return response
684
+ end
685
+ rescue ::GRPC::BadStatus => e
686
+ raise ::Google::Cloud::Error.from_error(e)
687
+ end
688
+
689
+ ##
690
+ # Lists the participant sessions of a participant in a conference record. By
691
+ # default, ordered by join time and in descending order. This API supports
692
+ # `fields` as standard parameters like every other API. However, when the
693
+ # `fields` request parameter is omitted this API defaults to
694
+ # `'participantsessions/*, next_page_token'`.
695
+ #
696
+ # @overload list_participant_sessions(request, options = nil)
697
+ # Pass arguments to `list_participant_sessions` via a request object, either of type
698
+ # {::Google::Apps::Meet::V2::ListParticipantSessionsRequest} or an equivalent Hash.
699
+ #
700
+ # @param request [::Google::Apps::Meet::V2::ListParticipantSessionsRequest, ::Hash]
701
+ # A request object representing the call parameters. Required. To specify no
702
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
703
+ # @param options [::Gapic::CallOptions, ::Hash]
704
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
705
+ #
706
+ # @overload list_participant_sessions(parent: nil, page_size: nil, page_token: nil, filter: nil)
707
+ # Pass arguments to `list_participant_sessions` via keyword arguments. Note that at
708
+ # least one keyword argument is required. To specify no parameters, or to keep all
709
+ # the default parameter values, pass an empty Hash as a request object (see above).
710
+ #
711
+ # @param parent [::String]
712
+ # Required. Format:
713
+ # `conferenceRecords/{conference_record}/participants/{participant}`
714
+ # @param page_size [::Integer]
715
+ # Optional. Maximum number of participant sessions to return. The service
716
+ # might return fewer than this value. If unspecified, at most 100
717
+ # participants are returned. The maximum value is 250; values above 250 are
718
+ # coerced to 250. Maximum might change in the future.
719
+ # @param page_token [::String]
720
+ # Optional. Page token returned from previous List Call.
721
+ # @param filter [::String]
722
+ # Optional. User specified filtering condition in [EBNF
723
+ # format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
724
+ # The following are the filterable fields:
725
+ #
726
+ # * `start_time`
727
+ # * `end_time`
728
+ #
729
+ # For example, `end_time IS NULL` returns active participant sessions in
730
+ # the conference record.
731
+ #
732
+ # @yield [response, operation] Access the result along with the RPC operation
733
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::ParticipantSession>]
734
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
735
+ #
736
+ # @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::ParticipantSession>]
737
+ #
738
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
739
+ #
740
+ # @example Basic example
741
+ # require "google/apps/meet/v2"
742
+ #
743
+ # # Create a client object. The client can be reused for multiple calls.
744
+ # client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
745
+ #
746
+ # # Create a request. To set request fields, pass in keyword arguments.
747
+ # request = Google::Apps::Meet::V2::ListParticipantSessionsRequest.new
748
+ #
749
+ # # Call the list_participant_sessions method.
750
+ # result = client.list_participant_sessions request
751
+ #
752
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
753
+ # # over elements, and API calls will be issued to fetch pages as needed.
754
+ # result.each do |item|
755
+ # # Each element is of type ::Google::Apps::Meet::V2::ParticipantSession.
756
+ # p item
757
+ # end
758
+ #
759
+ def list_participant_sessions request, options = nil
760
+ raise ::ArgumentError, "request must be provided" if request.nil?
761
+
762
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::ListParticipantSessionsRequest
763
+
764
+ # Converts hash and nil to an options object
765
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
766
+
767
+ # Customize the options with defaults
768
+ metadata = @config.rpcs.list_participant_sessions.metadata.to_h
769
+
770
+ # Set x-goog-api-client and x-goog-user-project headers
771
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
772
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
773
+ gapic_version: ::Google::Apps::Meet::V2::VERSION
774
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
775
+
776
+ header_params = {}
777
+ if request.parent
778
+ header_params["parent"] = request.parent
779
+ end
780
+
781
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
782
+ metadata[:"x-goog-request-params"] ||= request_params_header
783
+
784
+ options.apply_defaults timeout: @config.rpcs.list_participant_sessions.timeout,
785
+ metadata: metadata,
786
+ retry_policy: @config.rpcs.list_participant_sessions.retry_policy
787
+
788
+ options.apply_defaults timeout: @config.timeout,
789
+ metadata: @config.metadata,
790
+ retry_policy: @config.retry_policy
791
+
792
+ @conference_records_service_stub.call_rpc :list_participant_sessions, request, options: options do |response, operation|
793
+ response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_participant_sessions, request, response, operation, options
794
+ yield response, operation if block_given?
795
+ return response
796
+ end
797
+ rescue ::GRPC::BadStatus => e
798
+ raise ::Google::Cloud::Error.from_error(e)
799
+ end
800
+
801
+ ##
802
+ # Gets a recording by recording ID.
803
+ #
804
+ # @overload get_recording(request, options = nil)
805
+ # Pass arguments to `get_recording` via a request object, either of type
806
+ # {::Google::Apps::Meet::V2::GetRecordingRequest} or an equivalent Hash.
807
+ #
808
+ # @param request [::Google::Apps::Meet::V2::GetRecordingRequest, ::Hash]
809
+ # A request object representing the call parameters. Required. To specify no
810
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
811
+ # @param options [::Gapic::CallOptions, ::Hash]
812
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
813
+ #
814
+ # @overload get_recording(name: nil)
815
+ # Pass arguments to `get_recording` via keyword arguments. Note that at
816
+ # least one keyword argument is required. To specify no parameters, or to keep all
817
+ # the default parameter values, pass an empty Hash as a request object (see above).
818
+ #
819
+ # @param name [::String]
820
+ # Required. Resource name of the recording.
821
+ #
822
+ # @yield [response, operation] Access the result along with the RPC operation
823
+ # @yieldparam response [::Google::Apps::Meet::V2::Recording]
824
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
825
+ #
826
+ # @return [::Google::Apps::Meet::V2::Recording]
827
+ #
828
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
829
+ #
830
+ # @example Basic example
831
+ # require "google/apps/meet/v2"
832
+ #
833
+ # # Create a client object. The client can be reused for multiple calls.
834
+ # client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
835
+ #
836
+ # # Create a request. To set request fields, pass in keyword arguments.
837
+ # request = Google::Apps::Meet::V2::GetRecordingRequest.new
838
+ #
839
+ # # Call the get_recording method.
840
+ # result = client.get_recording request
841
+ #
842
+ # # The returned object is of type Google::Apps::Meet::V2::Recording.
843
+ # p result
844
+ #
845
+ def get_recording request, options = nil
846
+ raise ::ArgumentError, "request must be provided" if request.nil?
847
+
848
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::GetRecordingRequest
849
+
850
+ # Converts hash and nil to an options object
851
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
852
+
853
+ # Customize the options with defaults
854
+ metadata = @config.rpcs.get_recording.metadata.to_h
855
+
856
+ # Set x-goog-api-client and x-goog-user-project headers
857
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
858
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
859
+ gapic_version: ::Google::Apps::Meet::V2::VERSION
860
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
861
+
862
+ header_params = {}
863
+ if request.name
864
+ header_params["name"] = request.name
865
+ end
866
+
867
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
868
+ metadata[:"x-goog-request-params"] ||= request_params_header
869
+
870
+ options.apply_defaults timeout: @config.rpcs.get_recording.timeout,
871
+ metadata: metadata,
872
+ retry_policy: @config.rpcs.get_recording.retry_policy
873
+
874
+ options.apply_defaults timeout: @config.timeout,
875
+ metadata: @config.metadata,
876
+ retry_policy: @config.retry_policy
877
+
878
+ @conference_records_service_stub.call_rpc :get_recording, request, options: options do |response, operation|
879
+ yield response, operation if block_given?
880
+ return response
881
+ end
882
+ rescue ::GRPC::BadStatus => e
883
+ raise ::Google::Cloud::Error.from_error(e)
884
+ end
885
+
886
+ ##
887
+ # Lists the recording resources from the conference record. By default,
888
+ # ordered by start time and in ascending order.
889
+ #
890
+ # @overload list_recordings(request, options = nil)
891
+ # Pass arguments to `list_recordings` via a request object, either of type
892
+ # {::Google::Apps::Meet::V2::ListRecordingsRequest} or an equivalent Hash.
893
+ #
894
+ # @param request [::Google::Apps::Meet::V2::ListRecordingsRequest, ::Hash]
895
+ # A request object representing the call parameters. Required. To specify no
896
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
897
+ # @param options [::Gapic::CallOptions, ::Hash]
898
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
899
+ #
900
+ # @overload list_recordings(parent: nil, page_size: nil, page_token: nil)
901
+ # Pass arguments to `list_recordings` via keyword arguments. Note that at
902
+ # least one keyword argument is required. To specify no parameters, or to keep all
903
+ # the default parameter values, pass an empty Hash as a request object (see above).
904
+ #
905
+ # @param parent [::String]
906
+ # Required. Format: `conferenceRecords/{conference_record}`
907
+ # @param page_size [::Integer]
908
+ # Maximum number of recordings to return. The service might return fewer
909
+ # than this value.
910
+ # If unspecified, at most 10 recordings are returned.
911
+ # The maximum value is 100; values above 100 are coerced to 100.
912
+ # Maximum might change in the future.
913
+ # @param page_token [::String]
914
+ # Page token returned from previous List Call.
915
+ #
916
+ # @yield [response, operation] Access the result along with the RPC operation
917
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::Recording>]
918
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
919
+ #
920
+ # @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::Recording>]
921
+ #
922
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
923
+ #
924
+ # @example Basic example
925
+ # require "google/apps/meet/v2"
926
+ #
927
+ # # Create a client object. The client can be reused for multiple calls.
928
+ # client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
929
+ #
930
+ # # Create a request. To set request fields, pass in keyword arguments.
931
+ # request = Google::Apps::Meet::V2::ListRecordingsRequest.new
932
+ #
933
+ # # Call the list_recordings method.
934
+ # result = client.list_recordings request
935
+ #
936
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
937
+ # # over elements, and API calls will be issued to fetch pages as needed.
938
+ # result.each do |item|
939
+ # # Each element is of type ::Google::Apps::Meet::V2::Recording.
940
+ # p item
941
+ # end
942
+ #
943
+ def list_recordings request, options = nil
944
+ raise ::ArgumentError, "request must be provided" if request.nil?
945
+
946
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::ListRecordingsRequest
947
+
948
+ # Converts hash and nil to an options object
949
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
950
+
951
+ # Customize the options with defaults
952
+ metadata = @config.rpcs.list_recordings.metadata.to_h
953
+
954
+ # Set x-goog-api-client and x-goog-user-project headers
955
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
956
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
957
+ gapic_version: ::Google::Apps::Meet::V2::VERSION
958
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
959
+
960
+ header_params = {}
961
+ if request.parent
962
+ header_params["parent"] = request.parent
963
+ end
964
+
965
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
966
+ metadata[:"x-goog-request-params"] ||= request_params_header
967
+
968
+ options.apply_defaults timeout: @config.rpcs.list_recordings.timeout,
969
+ metadata: metadata,
970
+ retry_policy: @config.rpcs.list_recordings.retry_policy
971
+
972
+ options.apply_defaults timeout: @config.timeout,
973
+ metadata: @config.metadata,
974
+ retry_policy: @config.retry_policy
975
+
976
+ @conference_records_service_stub.call_rpc :list_recordings, request, options: options do |response, operation|
977
+ response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_recordings, request, response, operation, options
978
+ yield response, operation if block_given?
979
+ return response
980
+ end
981
+ rescue ::GRPC::BadStatus => e
982
+ raise ::Google::Cloud::Error.from_error(e)
983
+ end
984
+
985
+ ##
986
+ # Gets a transcript by transcript ID.
987
+ #
988
+ # @overload get_transcript(request, options = nil)
989
+ # Pass arguments to `get_transcript` via a request object, either of type
990
+ # {::Google::Apps::Meet::V2::GetTranscriptRequest} or an equivalent Hash.
991
+ #
992
+ # @param request [::Google::Apps::Meet::V2::GetTranscriptRequest, ::Hash]
993
+ # A request object representing the call parameters. Required. To specify no
994
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
995
+ # @param options [::Gapic::CallOptions, ::Hash]
996
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
997
+ #
998
+ # @overload get_transcript(name: nil)
999
+ # Pass arguments to `get_transcript` via keyword arguments. Note that at
1000
+ # least one keyword argument is required. To specify no parameters, or to keep all
1001
+ # the default parameter values, pass an empty Hash as a request object (see above).
1002
+ #
1003
+ # @param name [::String]
1004
+ # Required. Resource name of the transcript.
1005
+ #
1006
+ # @yield [response, operation] Access the result along with the RPC operation
1007
+ # @yieldparam response [::Google::Apps::Meet::V2::Transcript]
1008
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1009
+ #
1010
+ # @return [::Google::Apps::Meet::V2::Transcript]
1011
+ #
1012
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1013
+ #
1014
+ # @example Basic example
1015
+ # require "google/apps/meet/v2"
1016
+ #
1017
+ # # Create a client object. The client can be reused for multiple calls.
1018
+ # client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
1019
+ #
1020
+ # # Create a request. To set request fields, pass in keyword arguments.
1021
+ # request = Google::Apps::Meet::V2::GetTranscriptRequest.new
1022
+ #
1023
+ # # Call the get_transcript method.
1024
+ # result = client.get_transcript request
1025
+ #
1026
+ # # The returned object is of type Google::Apps::Meet::V2::Transcript.
1027
+ # p result
1028
+ #
1029
+ def get_transcript request, options = nil
1030
+ raise ::ArgumentError, "request must be provided" if request.nil?
1031
+
1032
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::GetTranscriptRequest
1033
+
1034
+ # Converts hash and nil to an options object
1035
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1036
+
1037
+ # Customize the options with defaults
1038
+ metadata = @config.rpcs.get_transcript.metadata.to_h
1039
+
1040
+ # Set x-goog-api-client and x-goog-user-project headers
1041
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1042
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1043
+ gapic_version: ::Google::Apps::Meet::V2::VERSION
1044
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1045
+
1046
+ header_params = {}
1047
+ if request.name
1048
+ header_params["name"] = request.name
1049
+ end
1050
+
1051
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1052
+ metadata[:"x-goog-request-params"] ||= request_params_header
1053
+
1054
+ options.apply_defaults timeout: @config.rpcs.get_transcript.timeout,
1055
+ metadata: metadata,
1056
+ retry_policy: @config.rpcs.get_transcript.retry_policy
1057
+
1058
+ options.apply_defaults timeout: @config.timeout,
1059
+ metadata: @config.metadata,
1060
+ retry_policy: @config.retry_policy
1061
+
1062
+ @conference_records_service_stub.call_rpc :get_transcript, request, options: options do |response, operation|
1063
+ yield response, operation if block_given?
1064
+ return response
1065
+ end
1066
+ rescue ::GRPC::BadStatus => e
1067
+ raise ::Google::Cloud::Error.from_error(e)
1068
+ end
1069
+
1070
+ ##
1071
+ # Lists the set of transcripts from the conference record. By default,
1072
+ # ordered by start time and in ascending order.
1073
+ #
1074
+ # @overload list_transcripts(request, options = nil)
1075
+ # Pass arguments to `list_transcripts` via a request object, either of type
1076
+ # {::Google::Apps::Meet::V2::ListTranscriptsRequest} or an equivalent Hash.
1077
+ #
1078
+ # @param request [::Google::Apps::Meet::V2::ListTranscriptsRequest, ::Hash]
1079
+ # A request object representing the call parameters. Required. To specify no
1080
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1081
+ # @param options [::Gapic::CallOptions, ::Hash]
1082
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1083
+ #
1084
+ # @overload list_transcripts(parent: nil, page_size: nil, page_token: nil)
1085
+ # Pass arguments to `list_transcripts` via keyword arguments. Note that at
1086
+ # least one keyword argument is required. To specify no parameters, or to keep all
1087
+ # the default parameter values, pass an empty Hash as a request object (see above).
1088
+ #
1089
+ # @param parent [::String]
1090
+ # Required. Format: `conferenceRecords/{conference_record}`
1091
+ # @param page_size [::Integer]
1092
+ # Maximum number of transcripts to return. The service might return fewer
1093
+ # than this value.
1094
+ # If unspecified, at most 10 transcripts are returned.
1095
+ # The maximum value is 100; values above 100 are coerced to 100.
1096
+ # Maximum might change in the future.
1097
+ # @param page_token [::String]
1098
+ # Page token returned from previous List Call.
1099
+ #
1100
+ # @yield [response, operation] Access the result along with the RPC operation
1101
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::Transcript>]
1102
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1103
+ #
1104
+ # @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::Transcript>]
1105
+ #
1106
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1107
+ #
1108
+ # @example Basic example
1109
+ # require "google/apps/meet/v2"
1110
+ #
1111
+ # # Create a client object. The client can be reused for multiple calls.
1112
+ # client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
1113
+ #
1114
+ # # Create a request. To set request fields, pass in keyword arguments.
1115
+ # request = Google::Apps::Meet::V2::ListTranscriptsRequest.new
1116
+ #
1117
+ # # Call the list_transcripts method.
1118
+ # result = client.list_transcripts request
1119
+ #
1120
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1121
+ # # over elements, and API calls will be issued to fetch pages as needed.
1122
+ # result.each do |item|
1123
+ # # Each element is of type ::Google::Apps::Meet::V2::Transcript.
1124
+ # p item
1125
+ # end
1126
+ #
1127
+ def list_transcripts request, options = nil
1128
+ raise ::ArgumentError, "request must be provided" if request.nil?
1129
+
1130
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::ListTranscriptsRequest
1131
+
1132
+ # Converts hash and nil to an options object
1133
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1134
+
1135
+ # Customize the options with defaults
1136
+ metadata = @config.rpcs.list_transcripts.metadata.to_h
1137
+
1138
+ # Set x-goog-api-client and x-goog-user-project headers
1139
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1140
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1141
+ gapic_version: ::Google::Apps::Meet::V2::VERSION
1142
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1143
+
1144
+ header_params = {}
1145
+ if request.parent
1146
+ header_params["parent"] = request.parent
1147
+ end
1148
+
1149
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1150
+ metadata[:"x-goog-request-params"] ||= request_params_header
1151
+
1152
+ options.apply_defaults timeout: @config.rpcs.list_transcripts.timeout,
1153
+ metadata: metadata,
1154
+ retry_policy: @config.rpcs.list_transcripts.retry_policy
1155
+
1156
+ options.apply_defaults timeout: @config.timeout,
1157
+ metadata: @config.metadata,
1158
+ retry_policy: @config.retry_policy
1159
+
1160
+ @conference_records_service_stub.call_rpc :list_transcripts, request, options: options do |response, operation|
1161
+ response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_transcripts, request, response, operation, options
1162
+ yield response, operation if block_given?
1163
+ return response
1164
+ end
1165
+ rescue ::GRPC::BadStatus => e
1166
+ raise ::Google::Cloud::Error.from_error(e)
1167
+ end
1168
+
1169
+ ##
1170
+ # Gets a `TranscriptEntry` resource by entry ID.
1171
+ #
1172
+ # Note: The transcript entries returned by the Google Meet API might not
1173
+ # match the transcription found in the Google Docs transcript file. This can
1174
+ # occur when the Google Docs transcript file is modified after generation.
1175
+ #
1176
+ # @overload get_transcript_entry(request, options = nil)
1177
+ # Pass arguments to `get_transcript_entry` via a request object, either of type
1178
+ # {::Google::Apps::Meet::V2::GetTranscriptEntryRequest} or an equivalent Hash.
1179
+ #
1180
+ # @param request [::Google::Apps::Meet::V2::GetTranscriptEntryRequest, ::Hash]
1181
+ # A request object representing the call parameters. Required. To specify no
1182
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1183
+ # @param options [::Gapic::CallOptions, ::Hash]
1184
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1185
+ #
1186
+ # @overload get_transcript_entry(name: nil)
1187
+ # Pass arguments to `get_transcript_entry` via keyword arguments. Note that at
1188
+ # least one keyword argument is required. To specify no parameters, or to keep all
1189
+ # the default parameter values, pass an empty Hash as a request object (see above).
1190
+ #
1191
+ # @param name [::String]
1192
+ # Required. Resource name of the `TranscriptEntry`.
1193
+ #
1194
+ # @yield [response, operation] Access the result along with the RPC operation
1195
+ # @yieldparam response [::Google::Apps::Meet::V2::TranscriptEntry]
1196
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1197
+ #
1198
+ # @return [::Google::Apps::Meet::V2::TranscriptEntry]
1199
+ #
1200
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1201
+ #
1202
+ # @example Basic example
1203
+ # require "google/apps/meet/v2"
1204
+ #
1205
+ # # Create a client object. The client can be reused for multiple calls.
1206
+ # client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
1207
+ #
1208
+ # # Create a request. To set request fields, pass in keyword arguments.
1209
+ # request = Google::Apps::Meet::V2::GetTranscriptEntryRequest.new
1210
+ #
1211
+ # # Call the get_transcript_entry method.
1212
+ # result = client.get_transcript_entry request
1213
+ #
1214
+ # # The returned object is of type Google::Apps::Meet::V2::TranscriptEntry.
1215
+ # p result
1216
+ #
1217
+ def get_transcript_entry request, options = nil
1218
+ raise ::ArgumentError, "request must be provided" if request.nil?
1219
+
1220
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::GetTranscriptEntryRequest
1221
+
1222
+ # Converts hash and nil to an options object
1223
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1224
+
1225
+ # Customize the options with defaults
1226
+ metadata = @config.rpcs.get_transcript_entry.metadata.to_h
1227
+
1228
+ # Set x-goog-api-client and x-goog-user-project headers
1229
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1230
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1231
+ gapic_version: ::Google::Apps::Meet::V2::VERSION
1232
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1233
+
1234
+ header_params = {}
1235
+ if request.name
1236
+ header_params["name"] = request.name
1237
+ end
1238
+
1239
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1240
+ metadata[:"x-goog-request-params"] ||= request_params_header
1241
+
1242
+ options.apply_defaults timeout: @config.rpcs.get_transcript_entry.timeout,
1243
+ metadata: metadata,
1244
+ retry_policy: @config.rpcs.get_transcript_entry.retry_policy
1245
+
1246
+ options.apply_defaults timeout: @config.timeout,
1247
+ metadata: @config.metadata,
1248
+ retry_policy: @config.retry_policy
1249
+
1250
+ @conference_records_service_stub.call_rpc :get_transcript_entry, request, options: options do |response, operation|
1251
+ yield response, operation if block_given?
1252
+ return response
1253
+ end
1254
+ rescue ::GRPC::BadStatus => e
1255
+ raise ::Google::Cloud::Error.from_error(e)
1256
+ end
1257
+
1258
+ ##
1259
+ # Lists the structured transcript entries per transcript. By default, ordered
1260
+ # by start time and in ascending order.
1261
+ #
1262
+ # Note: The transcript entries returned by the Google Meet API might not
1263
+ # match the transcription found in the Google Docs transcript file. This can
1264
+ # occur when the Google Docs transcript file is modified after generation.
1265
+ #
1266
+ # @overload list_transcript_entries(request, options = nil)
1267
+ # Pass arguments to `list_transcript_entries` via a request object, either of type
1268
+ # {::Google::Apps::Meet::V2::ListTranscriptEntriesRequest} or an equivalent Hash.
1269
+ #
1270
+ # @param request [::Google::Apps::Meet::V2::ListTranscriptEntriesRequest, ::Hash]
1271
+ # A request object representing the call parameters. Required. To specify no
1272
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1273
+ # @param options [::Gapic::CallOptions, ::Hash]
1274
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1275
+ #
1276
+ # @overload list_transcript_entries(parent: nil, page_size: nil, page_token: nil)
1277
+ # Pass arguments to `list_transcript_entries` via keyword arguments. Note that at
1278
+ # least one keyword argument is required. To specify no parameters, or to keep all
1279
+ # the default parameter values, pass an empty Hash as a request object (see above).
1280
+ #
1281
+ # @param parent [::String]
1282
+ # Required. Format:
1283
+ # `conferenceRecords/{conference_record}/transcripts/{transcript}`
1284
+ # @param page_size [::Integer]
1285
+ # Maximum number of entries to return. The service might return fewer than
1286
+ # this value.
1287
+ # If unspecified, at most 10 entries are returned.
1288
+ # The maximum value is 100; values above 100 are coerced to 100.
1289
+ # Maximum might change in the future.
1290
+ # @param page_token [::String]
1291
+ # Page token returned from previous List Call.
1292
+ #
1293
+ # @yield [response, operation] Access the result along with the RPC operation
1294
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::TranscriptEntry>]
1295
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1296
+ #
1297
+ # @return [::Gapic::PagedEnumerable<::Google::Apps::Meet::V2::TranscriptEntry>]
1298
+ #
1299
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1300
+ #
1301
+ # @example Basic example
1302
+ # require "google/apps/meet/v2"
1303
+ #
1304
+ # # Create a client object. The client can be reused for multiple calls.
1305
+ # client = Google::Apps::Meet::V2::ConferenceRecordsService::Client.new
1306
+ #
1307
+ # # Create a request. To set request fields, pass in keyword arguments.
1308
+ # request = Google::Apps::Meet::V2::ListTranscriptEntriesRequest.new
1309
+ #
1310
+ # # Call the list_transcript_entries method.
1311
+ # result = client.list_transcript_entries request
1312
+ #
1313
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1314
+ # # over elements, and API calls will be issued to fetch pages as needed.
1315
+ # result.each do |item|
1316
+ # # Each element is of type ::Google::Apps::Meet::V2::TranscriptEntry.
1317
+ # p item
1318
+ # end
1319
+ #
1320
+ def list_transcript_entries request, options = nil
1321
+ raise ::ArgumentError, "request must be provided" if request.nil?
1322
+
1323
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Apps::Meet::V2::ListTranscriptEntriesRequest
1324
+
1325
+ # Converts hash and nil to an options object
1326
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1327
+
1328
+ # Customize the options with defaults
1329
+ metadata = @config.rpcs.list_transcript_entries.metadata.to_h
1330
+
1331
+ # Set x-goog-api-client and x-goog-user-project headers
1332
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1333
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1334
+ gapic_version: ::Google::Apps::Meet::V2::VERSION
1335
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1336
+
1337
+ header_params = {}
1338
+ if request.parent
1339
+ header_params["parent"] = request.parent
1340
+ end
1341
+
1342
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1343
+ metadata[:"x-goog-request-params"] ||= request_params_header
1344
+
1345
+ options.apply_defaults timeout: @config.rpcs.list_transcript_entries.timeout,
1346
+ metadata: metadata,
1347
+ retry_policy: @config.rpcs.list_transcript_entries.retry_policy
1348
+
1349
+ options.apply_defaults timeout: @config.timeout,
1350
+ metadata: @config.metadata,
1351
+ retry_policy: @config.retry_policy
1352
+
1353
+ @conference_records_service_stub.call_rpc :list_transcript_entries, request, options: options do |response, operation|
1354
+ response = ::Gapic::PagedEnumerable.new @conference_records_service_stub, :list_transcript_entries, request, response, operation, options
1355
+ yield response, operation if block_given?
1356
+ return response
1357
+ end
1358
+ rescue ::GRPC::BadStatus => e
1359
+ raise ::Google::Cloud::Error.from_error(e)
1360
+ end
1361
+
1362
+ ##
1363
+ # Configuration class for the ConferenceRecordsService API.
1364
+ #
1365
+ # This class represents the configuration for ConferenceRecordsService,
1366
+ # providing control over timeouts, retry behavior, logging, transport
1367
+ # parameters, and other low-level controls. Certain parameters can also be
1368
+ # applied individually to specific RPCs. See
1369
+ # {::Google::Apps::Meet::V2::ConferenceRecordsService::Client::Configuration::Rpcs}
1370
+ # for a list of RPCs that can be configured independently.
1371
+ #
1372
+ # Configuration can be applied globally to all clients, or to a single client
1373
+ # on construction.
1374
+ #
1375
+ # @example
1376
+ #
1377
+ # # Modify the global config, setting the timeout for
1378
+ # # get_conference_record to 20 seconds,
1379
+ # # and all remaining timeouts to 10 seconds.
1380
+ # ::Google::Apps::Meet::V2::ConferenceRecordsService::Client.configure do |config|
1381
+ # config.timeout = 10.0
1382
+ # config.rpcs.get_conference_record.timeout = 20.0
1383
+ # end
1384
+ #
1385
+ # # Apply the above configuration only to a new client.
1386
+ # client = ::Google::Apps::Meet::V2::ConferenceRecordsService::Client.new do |config|
1387
+ # config.timeout = 10.0
1388
+ # config.rpcs.get_conference_record.timeout = 20.0
1389
+ # end
1390
+ #
1391
+ # @!attribute [rw] endpoint
1392
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1393
+ # nil, indicating to use the default endpoint in the current universe domain.
1394
+ # @return [::String,nil]
1395
+ # @!attribute [rw] credentials
1396
+ # Credentials to send with calls. You may provide any of the following types:
1397
+ # * (`String`) The path to a service account key file in JSON format
1398
+ # * (`Hash`) A service account key as a Hash
1399
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1400
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1401
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1402
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1403
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1404
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1405
+ # * (`nil`) indicating no credentials
1406
+ # @return [::Object]
1407
+ # @!attribute [rw] scope
1408
+ # The OAuth scopes
1409
+ # @return [::Array<::String>]
1410
+ # @!attribute [rw] lib_name
1411
+ # The library name as recorded in instrumentation and logging
1412
+ # @return [::String]
1413
+ # @!attribute [rw] lib_version
1414
+ # The library version as recorded in instrumentation and logging
1415
+ # @return [::String]
1416
+ # @!attribute [rw] channel_args
1417
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1418
+ # `GRPC::Core::Channel` object is provided as the credential.
1419
+ # @return [::Hash]
1420
+ # @!attribute [rw] interceptors
1421
+ # An array of interceptors that are run before calls are executed.
1422
+ # @return [::Array<::GRPC::ClientInterceptor>]
1423
+ # @!attribute [rw] timeout
1424
+ # The call timeout in seconds.
1425
+ # @return [::Numeric]
1426
+ # @!attribute [rw] metadata
1427
+ # Additional gRPC headers to be sent with the call.
1428
+ # @return [::Hash{::Symbol=>::String}]
1429
+ # @!attribute [rw] retry_policy
1430
+ # The retry policy. The value is a hash with the following keys:
1431
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1432
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1433
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1434
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1435
+ # trigger a retry.
1436
+ # @return [::Hash]
1437
+ # @!attribute [rw] quota_project
1438
+ # A separate project against which to charge quota.
1439
+ # @return [::String]
1440
+ # @!attribute [rw] universe_domain
1441
+ # The universe domain within which to make requests. This determines the
1442
+ # default endpoint URL. The default value of nil uses the environment
1443
+ # universe (usually the default "googleapis.com" universe).
1444
+ # @return [::String,nil]
1445
+ #
1446
+ class Configuration
1447
+ extend ::Gapic::Config
1448
+
1449
+ # @private
1450
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1451
+ DEFAULT_ENDPOINT = "meet.googleapis.com"
1452
+
1453
+ config_attr :endpoint, nil, ::String, nil
1454
+ config_attr :credentials, nil do |value|
1455
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1456
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1457
+ allowed.any? { |klass| klass === value }
1458
+ end
1459
+ config_attr :scope, nil, ::String, ::Array, nil
1460
+ config_attr :lib_name, nil, ::String, nil
1461
+ config_attr :lib_version, nil, ::String, nil
1462
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
1463
+ config_attr :interceptors, nil, ::Array, nil
1464
+ config_attr :timeout, nil, ::Numeric, nil
1465
+ config_attr :metadata, nil, ::Hash, nil
1466
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1467
+ config_attr :quota_project, nil, ::String, nil
1468
+ config_attr :universe_domain, nil, ::String, nil
1469
+
1470
+ # @private
1471
+ def initialize parent_config = nil
1472
+ @parent_config = parent_config unless parent_config.nil?
1473
+
1474
+ yield self if block_given?
1475
+ end
1476
+
1477
+ ##
1478
+ # Configurations for individual RPCs
1479
+ # @return [Rpcs]
1480
+ #
1481
+ def rpcs
1482
+ @rpcs ||= begin
1483
+ parent_rpcs = nil
1484
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1485
+ Rpcs.new parent_rpcs
1486
+ end
1487
+ end
1488
+
1489
+ ##
1490
+ # Configuration for the channel pool
1491
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1492
+ #
1493
+ def channel_pool
1494
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1495
+ end
1496
+
1497
+ ##
1498
+ # Configuration RPC class for the ConferenceRecordsService API.
1499
+ #
1500
+ # Includes fields providing the configuration for each RPC in this service.
1501
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1502
+ # the following configuration fields:
1503
+ #
1504
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1505
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1506
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1507
+ # include the following keys:
1508
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1509
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1510
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1511
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1512
+ # trigger a retry.
1513
+ #
1514
+ class Rpcs
1515
+ ##
1516
+ # RPC-specific configuration for `get_conference_record`
1517
+ # @return [::Gapic::Config::Method]
1518
+ #
1519
+ attr_reader :get_conference_record
1520
+ ##
1521
+ # RPC-specific configuration for `list_conference_records`
1522
+ # @return [::Gapic::Config::Method]
1523
+ #
1524
+ attr_reader :list_conference_records
1525
+ ##
1526
+ # RPC-specific configuration for `get_participant`
1527
+ # @return [::Gapic::Config::Method]
1528
+ #
1529
+ attr_reader :get_participant
1530
+ ##
1531
+ # RPC-specific configuration for `list_participants`
1532
+ # @return [::Gapic::Config::Method]
1533
+ #
1534
+ attr_reader :list_participants
1535
+ ##
1536
+ # RPC-specific configuration for `get_participant_session`
1537
+ # @return [::Gapic::Config::Method]
1538
+ #
1539
+ attr_reader :get_participant_session
1540
+ ##
1541
+ # RPC-specific configuration for `list_participant_sessions`
1542
+ # @return [::Gapic::Config::Method]
1543
+ #
1544
+ attr_reader :list_participant_sessions
1545
+ ##
1546
+ # RPC-specific configuration for `get_recording`
1547
+ # @return [::Gapic::Config::Method]
1548
+ #
1549
+ attr_reader :get_recording
1550
+ ##
1551
+ # RPC-specific configuration for `list_recordings`
1552
+ # @return [::Gapic::Config::Method]
1553
+ #
1554
+ attr_reader :list_recordings
1555
+ ##
1556
+ # RPC-specific configuration for `get_transcript`
1557
+ # @return [::Gapic::Config::Method]
1558
+ #
1559
+ attr_reader :get_transcript
1560
+ ##
1561
+ # RPC-specific configuration for `list_transcripts`
1562
+ # @return [::Gapic::Config::Method]
1563
+ #
1564
+ attr_reader :list_transcripts
1565
+ ##
1566
+ # RPC-specific configuration for `get_transcript_entry`
1567
+ # @return [::Gapic::Config::Method]
1568
+ #
1569
+ attr_reader :get_transcript_entry
1570
+ ##
1571
+ # RPC-specific configuration for `list_transcript_entries`
1572
+ # @return [::Gapic::Config::Method]
1573
+ #
1574
+ attr_reader :list_transcript_entries
1575
+
1576
+ # @private
1577
+ def initialize parent_rpcs = nil
1578
+ get_conference_record_config = parent_rpcs.get_conference_record if parent_rpcs.respond_to? :get_conference_record
1579
+ @get_conference_record = ::Gapic::Config::Method.new get_conference_record_config
1580
+ list_conference_records_config = parent_rpcs.list_conference_records if parent_rpcs.respond_to? :list_conference_records
1581
+ @list_conference_records = ::Gapic::Config::Method.new list_conference_records_config
1582
+ get_participant_config = parent_rpcs.get_participant if parent_rpcs.respond_to? :get_participant
1583
+ @get_participant = ::Gapic::Config::Method.new get_participant_config
1584
+ list_participants_config = parent_rpcs.list_participants if parent_rpcs.respond_to? :list_participants
1585
+ @list_participants = ::Gapic::Config::Method.new list_participants_config
1586
+ get_participant_session_config = parent_rpcs.get_participant_session if parent_rpcs.respond_to? :get_participant_session
1587
+ @get_participant_session = ::Gapic::Config::Method.new get_participant_session_config
1588
+ list_participant_sessions_config = parent_rpcs.list_participant_sessions if parent_rpcs.respond_to? :list_participant_sessions
1589
+ @list_participant_sessions = ::Gapic::Config::Method.new list_participant_sessions_config
1590
+ get_recording_config = parent_rpcs.get_recording if parent_rpcs.respond_to? :get_recording
1591
+ @get_recording = ::Gapic::Config::Method.new get_recording_config
1592
+ list_recordings_config = parent_rpcs.list_recordings if parent_rpcs.respond_to? :list_recordings
1593
+ @list_recordings = ::Gapic::Config::Method.new list_recordings_config
1594
+ get_transcript_config = parent_rpcs.get_transcript if parent_rpcs.respond_to? :get_transcript
1595
+ @get_transcript = ::Gapic::Config::Method.new get_transcript_config
1596
+ list_transcripts_config = parent_rpcs.list_transcripts if parent_rpcs.respond_to? :list_transcripts
1597
+ @list_transcripts = ::Gapic::Config::Method.new list_transcripts_config
1598
+ get_transcript_entry_config = parent_rpcs.get_transcript_entry if parent_rpcs.respond_to? :get_transcript_entry
1599
+ @get_transcript_entry = ::Gapic::Config::Method.new get_transcript_entry_config
1600
+ list_transcript_entries_config = parent_rpcs.list_transcript_entries if parent_rpcs.respond_to? :list_transcript_entries
1601
+ @list_transcript_entries = ::Gapic::Config::Method.new list_transcript_entries_config
1602
+
1603
+ yield self if block_given?
1604
+ end
1605
+ end
1606
+ end
1607
+ end
1608
+ end
1609
+ end
1610
+ end
1611
+ end
1612
+ end