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