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