google-cloud-dialogflow 1.9.1 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1070d13c9e9f76dd374b1b2522676c4691f030b6bfb17c486c505695b343e1b6
4
- data.tar.gz: 225de54f2cf6e09c0e87aa128b72bb4fc79e5ce01c9fc653c8470d0b70e45070
3
+ metadata.gz: 634ab99935a2ffd220fca6a7de12c96064935bbdc54e703018c18f827fa6aa76
4
+ data.tar.gz: 072a1441ce2f8ceefba73005a040d2204e0d33287cca544919c8c26ab8623b08
5
5
  SHA512:
6
- metadata.gz: 1680bc1010f1978f757e83f61a9ea21abc750174aa87a8582d42cdd1ec6099b9cb169c816963725756d5cc3896b71230685da6926d13c9847345956fe8a99fcf
7
- data.tar.gz: eca9c1fb74cb54d47df2cf7dba36c32415096be415682b8a879b88457b5c1232ee0389f4d3149ab050e7fc4ecbb95130d58d2efe05b7d3b873c385f316596a73
6
+ metadata.gz: 775162d374b4641136cda792af0d08e756cc980fdd25b4fab8c92b6bb1b41f8b9a8ab6ca8fe3004606eec712e18d3b5ccefd38a612b1d100f05c12009636221f
7
+ data.tar.gz: db13f88c669f2ca374cdf1c5b6a5b1b872d6c69c67644bf954d355c87f41d960419a9b348f1ce6e271f2cd25aaacf75037dd301f2903e45e7cdee97bc22b0d9d
data/README.md CHANGED
@@ -42,9 +42,39 @@ and includes substantial interface changes. Existing code written for earlier
42
42
  versions of this library will likely require updates to use this version.
43
43
  See the {file:MIGRATING.md MIGRATING.md} document for more information.
44
44
 
45
+ ## Debug Logging
46
+
47
+ This library comes with opt-in Debug Logging that can help you troubleshoot
48
+ your application's integration with the API. When logging is activated, key
49
+ events such as requests and responses, along with data payloads and metadata
50
+ such as headers and client configuration, are logged to the standard error
51
+ stream.
52
+
53
+ **WARNING:** Client Library Debug Logging includes your data payloads in
54
+ plaintext, which could include sensitive data such as PII for yourself or your
55
+ customers, private keys, or other security data that could be compromising if
56
+ leaked. Always practice good data hygiene with your application logs, and follow
57
+ the principle of least access. Google also recommends that Client Library Debug
58
+ Logging be enabled only temporarily during active debugging, and not used
59
+ permanently in production.
60
+
61
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
62
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
63
+ list of client library gem names. This will select the default logging behavior,
64
+ which writes logs to the standard error stream. On a local workstation, this may
65
+ result in logs appearing on the console. When running on a Google Cloud hosting
66
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
67
+ results in logs appearing alongside your application logs in the
68
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
69
+
70
+ Debug logging also requires that the versioned clients for this service be
71
+ sufficiently recent, released after about Dec 10, 2024. If logging is not
72
+ working, try updating the versioned clients in your bundle or installed gems:
73
+ [google-cloud-dialogflow-v2](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest).
74
+
45
75
  ## Supported Ruby Versions
46
76
 
47
- This library is supported on Ruby 2.7+.
77
+ This library is supported on Ruby 3.0+.
48
78
 
49
79
  Google provides official support for Ruby versions that are actively supported
50
80
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Dialogflow
19
- VERSION = "1.9.1".freeze
19
+ VERSION = "1.10.0".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -58,6 +58,11 @@ module Google
58
58
  # You can also specify a different transport by passing `:rest` or `:grpc` in
59
59
  # the `transport` parameter.
60
60
  #
61
+ # Raises an exception if the currently installed versioned client gem for the
62
+ # given API version does not support the given transport of the Agents service.
63
+ # You can determine whether the method will succeed by calling
64
+ # {Google::Cloud::Dialogflow.agents_available?}.
65
+ #
61
66
  # ## About Agents
62
67
  #
63
68
  # Service for managing Agents.
@@ -79,6 +84,37 @@ module Google
79
84
  service_module.const_get(:Client).new(&block)
80
85
  end
81
86
 
87
+ ##
88
+ # Determines whether the Agents service is supported by the current client.
89
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.agents}.
90
+ # If false, that method will raise an exception. This could happen if the given
91
+ # API version does not exist or does not support the Agents service,
92
+ # or if the versioned client gem needs an update to support the Agents service.
93
+ #
94
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
95
+ # Defaults to `:v2`.
96
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
97
+ # @return [boolean] Whether the service is available.
98
+ #
99
+ def self.agents_available? version: :v2, transport: :grpc
100
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
101
+ package_name = Google::Cloud::Dialogflow
102
+ .constants
103
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
104
+ .first
105
+ return false unless package_name
106
+ service_module = Google::Cloud::Dialogflow.const_get package_name
107
+ return false unless service_module.const_defined? :Agents
108
+ service_module = service_module.const_get :Agents
109
+ if transport == :rest
110
+ return false unless service_module.const_defined? :Rest
111
+ service_module = service_module.const_get :Rest
112
+ end
113
+ service_module.const_defined? :Client
114
+ rescue ::LoadError
115
+ false
116
+ end
117
+
82
118
  ##
83
119
  # Create a new client object for Contexts.
84
120
  #
@@ -92,6 +128,11 @@ module Google
92
128
  # You can also specify a different transport by passing `:rest` or `:grpc` in
93
129
  # the `transport` parameter.
94
130
  #
131
+ # Raises an exception if the currently installed versioned client gem for the
132
+ # given API version does not support the given transport of the Contexts service.
133
+ # You can determine whether the method will succeed by calling
134
+ # {Google::Cloud::Dialogflow.contexts_available?}.
135
+ #
95
136
  # ## About Contexts
96
137
  #
97
138
  # Service for managing Contexts.
@@ -113,6 +154,37 @@ module Google
113
154
  service_module.const_get(:Client).new(&block)
114
155
  end
115
156
 
157
+ ##
158
+ # Determines whether the Contexts service is supported by the current client.
159
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.contexts}.
160
+ # If false, that method will raise an exception. This could happen if the given
161
+ # API version does not exist or does not support the Contexts service,
162
+ # or if the versioned client gem needs an update to support the Contexts service.
163
+ #
164
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
165
+ # Defaults to `:v2`.
166
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
167
+ # @return [boolean] Whether the service is available.
168
+ #
169
+ def self.contexts_available? version: :v2, transport: :grpc
170
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
171
+ package_name = Google::Cloud::Dialogflow
172
+ .constants
173
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
174
+ .first
175
+ return false unless package_name
176
+ service_module = Google::Cloud::Dialogflow.const_get package_name
177
+ return false unless service_module.const_defined? :Contexts
178
+ service_module = service_module.const_get :Contexts
179
+ if transport == :rest
180
+ return false unless service_module.const_defined? :Rest
181
+ service_module = service_module.const_get :Rest
182
+ end
183
+ service_module.const_defined? :Client
184
+ rescue ::LoadError
185
+ false
186
+ end
187
+
116
188
  ##
117
189
  # Create a new client object for Intents.
118
190
  #
@@ -126,6 +198,11 @@ module Google
126
198
  # You can also specify a different transport by passing `:rest` or `:grpc` in
127
199
  # the `transport` parameter.
128
200
  #
201
+ # Raises an exception if the currently installed versioned client gem for the
202
+ # given API version does not support the given transport of the Intents service.
203
+ # You can determine whether the method will succeed by calling
204
+ # {Google::Cloud::Dialogflow.intents_available?}.
205
+ #
129
206
  # ## About Intents
130
207
  #
131
208
  # Service for managing Intents.
@@ -147,6 +224,37 @@ module Google
147
224
  service_module.const_get(:Client).new(&block)
148
225
  end
149
226
 
227
+ ##
228
+ # Determines whether the Intents service is supported by the current client.
229
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.intents}.
230
+ # If false, that method will raise an exception. This could happen if the given
231
+ # API version does not exist or does not support the Intents service,
232
+ # or if the versioned client gem needs an update to support the Intents service.
233
+ #
234
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
235
+ # Defaults to `:v2`.
236
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
237
+ # @return [boolean] Whether the service is available.
238
+ #
239
+ def self.intents_available? version: :v2, transport: :grpc
240
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
241
+ package_name = Google::Cloud::Dialogflow
242
+ .constants
243
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
244
+ .first
245
+ return false unless package_name
246
+ service_module = Google::Cloud::Dialogflow.const_get package_name
247
+ return false unless service_module.const_defined? :Intents
248
+ service_module = service_module.const_get :Intents
249
+ if transport == :rest
250
+ return false unless service_module.const_defined? :Rest
251
+ service_module = service_module.const_get :Rest
252
+ end
253
+ service_module.const_defined? :Client
254
+ rescue ::LoadError
255
+ false
256
+ end
257
+
150
258
  ##
151
259
  # Create a new client object for EntityTypes.
152
260
  #
@@ -160,6 +268,11 @@ module Google
160
268
  # You can also specify a different transport by passing `:rest` or `:grpc` in
161
269
  # the `transport` parameter.
162
270
  #
271
+ # Raises an exception if the currently installed versioned client gem for the
272
+ # given API version does not support the given transport of the EntityTypes service.
273
+ # You can determine whether the method will succeed by calling
274
+ # {Google::Cloud::Dialogflow.entity_types_available?}.
275
+ #
163
276
  # ## About EntityTypes
164
277
  #
165
278
  # Service for managing EntityTypes.
@@ -181,6 +294,37 @@ module Google
181
294
  service_module.const_get(:Client).new(&block)
182
295
  end
183
296
 
297
+ ##
298
+ # Determines whether the EntityTypes service is supported by the current client.
299
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.entity_types}.
300
+ # If false, that method will raise an exception. This could happen if the given
301
+ # API version does not exist or does not support the EntityTypes service,
302
+ # or if the versioned client gem needs an update to support the EntityTypes service.
303
+ #
304
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
305
+ # Defaults to `:v2`.
306
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
307
+ # @return [boolean] Whether the service is available.
308
+ #
309
+ def self.entity_types_available? version: :v2, transport: :grpc
310
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
311
+ package_name = Google::Cloud::Dialogflow
312
+ .constants
313
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
314
+ .first
315
+ return false unless package_name
316
+ service_module = Google::Cloud::Dialogflow.const_get package_name
317
+ return false unless service_module.const_defined? :EntityTypes
318
+ service_module = service_module.const_get :EntityTypes
319
+ if transport == :rest
320
+ return false unless service_module.const_defined? :Rest
321
+ service_module = service_module.const_get :Rest
322
+ end
323
+ service_module.const_defined? :Client
324
+ rescue ::LoadError
325
+ false
326
+ end
327
+
184
328
  ##
185
329
  # Create a new client object for SessionEntityTypes.
186
330
  #
@@ -194,6 +338,11 @@ module Google
194
338
  # You can also specify a different transport by passing `:rest` or `:grpc` in
195
339
  # the `transport` parameter.
196
340
  #
341
+ # Raises an exception if the currently installed versioned client gem for the
342
+ # given API version does not support the given transport of the SessionEntityTypes service.
343
+ # You can determine whether the method will succeed by calling
344
+ # {Google::Cloud::Dialogflow.session_entity_types_available?}.
345
+ #
197
346
  # ## About SessionEntityTypes
198
347
  #
199
348
  # Service for managing
@@ -216,6 +365,37 @@ module Google
216
365
  service_module.const_get(:Client).new(&block)
217
366
  end
218
367
 
368
+ ##
369
+ # Determines whether the SessionEntityTypes service is supported by the current client.
370
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.session_entity_types}.
371
+ # If false, that method will raise an exception. This could happen if the given
372
+ # API version does not exist or does not support the SessionEntityTypes service,
373
+ # or if the versioned client gem needs an update to support the SessionEntityTypes service.
374
+ #
375
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
376
+ # Defaults to `:v2`.
377
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
378
+ # @return [boolean] Whether the service is available.
379
+ #
380
+ def self.session_entity_types_available? version: :v2, transport: :grpc
381
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
382
+ package_name = Google::Cloud::Dialogflow
383
+ .constants
384
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
385
+ .first
386
+ return false unless package_name
387
+ service_module = Google::Cloud::Dialogflow.const_get package_name
388
+ return false unless service_module.const_defined? :SessionEntityTypes
389
+ service_module = service_module.const_get :SessionEntityTypes
390
+ if transport == :rest
391
+ return false unless service_module.const_defined? :Rest
392
+ service_module = service_module.const_get :Rest
393
+ end
394
+ service_module.const_defined? :Client
395
+ rescue ::LoadError
396
+ false
397
+ end
398
+
219
399
  ##
220
400
  # Create a new client object for Sessions.
221
401
  #
@@ -229,6 +409,11 @@ module Google
229
409
  # You can also specify a different transport by passing `:rest` or `:grpc` in
230
410
  # the `transport` parameter.
231
411
  #
412
+ # Raises an exception if the currently installed versioned client gem for the
413
+ # given API version does not support the given transport of the Sessions service.
414
+ # You can determine whether the method will succeed by calling
415
+ # {Google::Cloud::Dialogflow.sessions_available?}.
416
+ #
232
417
  # ## About Sessions
233
418
  #
234
419
  # A service used for session interactions.
@@ -253,6 +438,37 @@ module Google
253
438
  service_module.const_get(:Client).new(&block)
254
439
  end
255
440
 
441
+ ##
442
+ # Determines whether the Sessions service is supported by the current client.
443
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.sessions}.
444
+ # If false, that method will raise an exception. This could happen if the given
445
+ # API version does not exist or does not support the Sessions service,
446
+ # or if the versioned client gem needs an update to support the Sessions service.
447
+ #
448
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
449
+ # Defaults to `:v2`.
450
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
451
+ # @return [boolean] Whether the service is available.
452
+ #
453
+ def self.sessions_available? version: :v2, transport: :grpc
454
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
455
+ package_name = Google::Cloud::Dialogflow
456
+ .constants
457
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
458
+ .first
459
+ return false unless package_name
460
+ service_module = Google::Cloud::Dialogflow.const_get package_name
461
+ return false unless service_module.const_defined? :Sessions
462
+ service_module = service_module.const_get :Sessions
463
+ if transport == :rest
464
+ return false unless service_module.const_defined? :Rest
465
+ service_module = service_module.const_get :Rest
466
+ end
467
+ service_module.const_defined? :Client
468
+ rescue ::LoadError
469
+ false
470
+ end
471
+
256
472
  ##
257
473
  # Create a new client object for Participants.
258
474
  #
@@ -266,6 +482,11 @@ module Google
266
482
  # You can also specify a different transport by passing `:rest` or `:grpc` in
267
483
  # the `transport` parameter.
268
484
  #
485
+ # Raises an exception if the currently installed versioned client gem for the
486
+ # given API version does not support the given transport of the Participants service.
487
+ # You can determine whether the method will succeed by calling
488
+ # {Google::Cloud::Dialogflow.participants_available?}.
489
+ #
269
490
  # ## About Participants
270
491
  #
271
492
  # Service for managing Participants.
@@ -287,6 +508,37 @@ module Google
287
508
  service_module.const_get(:Client).new(&block)
288
509
  end
289
510
 
511
+ ##
512
+ # Determines whether the Participants service is supported by the current client.
513
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.participants}.
514
+ # If false, that method will raise an exception. This could happen if the given
515
+ # API version does not exist or does not support the Participants service,
516
+ # or if the versioned client gem needs an update to support the Participants service.
517
+ #
518
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
519
+ # Defaults to `:v2`.
520
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
521
+ # @return [boolean] Whether the service is available.
522
+ #
523
+ def self.participants_available? version: :v2, transport: :grpc
524
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
525
+ package_name = Google::Cloud::Dialogflow
526
+ .constants
527
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
528
+ .first
529
+ return false unless package_name
530
+ service_module = Google::Cloud::Dialogflow.const_get package_name
531
+ return false unless service_module.const_defined? :Participants
532
+ service_module = service_module.const_get :Participants
533
+ if transport == :rest
534
+ return false unless service_module.const_defined? :Rest
535
+ service_module = service_module.const_get :Rest
536
+ end
537
+ service_module.const_defined? :Client
538
+ rescue ::LoadError
539
+ false
540
+ end
541
+
290
542
  ##
291
543
  # Create a new client object for AnswerRecords.
292
544
  #
@@ -300,6 +552,11 @@ module Google
300
552
  # You can also specify a different transport by passing `:rest` or `:grpc` in
301
553
  # the `transport` parameter.
302
554
  #
555
+ # Raises an exception if the currently installed versioned client gem for the
556
+ # given API version does not support the given transport of the AnswerRecords service.
557
+ # You can determine whether the method will succeed by calling
558
+ # {Google::Cloud::Dialogflow.answer_records_available?}.
559
+ #
303
560
  # ## About AnswerRecords
304
561
  #
305
562
  # Service for managing
@@ -322,6 +579,37 @@ module Google
322
579
  service_module.const_get(:Client).new(&block)
323
580
  end
324
581
 
582
+ ##
583
+ # Determines whether the AnswerRecords service is supported by the current client.
584
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.answer_records}.
585
+ # If false, that method will raise an exception. This could happen if the given
586
+ # API version does not exist or does not support the AnswerRecords service,
587
+ # or if the versioned client gem needs an update to support the AnswerRecords service.
588
+ #
589
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
590
+ # Defaults to `:v2`.
591
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
592
+ # @return [boolean] Whether the service is available.
593
+ #
594
+ def self.answer_records_available? version: :v2, transport: :grpc
595
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
596
+ package_name = Google::Cloud::Dialogflow
597
+ .constants
598
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
599
+ .first
600
+ return false unless package_name
601
+ service_module = Google::Cloud::Dialogflow.const_get package_name
602
+ return false unless service_module.const_defined? :AnswerRecords
603
+ service_module = service_module.const_get :AnswerRecords
604
+ if transport == :rest
605
+ return false unless service_module.const_defined? :Rest
606
+ service_module = service_module.const_get :Rest
607
+ end
608
+ service_module.const_defined? :Client
609
+ rescue ::LoadError
610
+ false
611
+ end
612
+
325
613
  ##
326
614
  # Create a new client object for ConversationProfiles.
327
615
  #
@@ -335,6 +623,11 @@ module Google
335
623
  # You can also specify a different transport by passing `:rest` or `:grpc` in
336
624
  # the `transport` parameter.
337
625
  #
626
+ # Raises an exception if the currently installed versioned client gem for the
627
+ # given API version does not support the given transport of the ConversationProfiles service.
628
+ # You can determine whether the method will succeed by calling
629
+ # {Google::Cloud::Dialogflow.conversation_profiles_available?}.
630
+ #
338
631
  # ## About ConversationProfiles
339
632
  #
340
633
  # Service for managing
@@ -357,6 +650,37 @@ module Google
357
650
  service_module.const_get(:Client).new(&block)
358
651
  end
359
652
 
653
+ ##
654
+ # Determines whether the ConversationProfiles service is supported by the current client.
655
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.conversation_profiles}.
656
+ # If false, that method will raise an exception. This could happen if the given
657
+ # API version does not exist or does not support the ConversationProfiles service,
658
+ # or if the versioned client gem needs an update to support the ConversationProfiles service.
659
+ #
660
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
661
+ # Defaults to `:v2`.
662
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
663
+ # @return [boolean] Whether the service is available.
664
+ #
665
+ def self.conversation_profiles_available? version: :v2, transport: :grpc
666
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
667
+ package_name = Google::Cloud::Dialogflow
668
+ .constants
669
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
670
+ .first
671
+ return false unless package_name
672
+ service_module = Google::Cloud::Dialogflow.const_get package_name
673
+ return false unless service_module.const_defined? :ConversationProfiles
674
+ service_module = service_module.const_get :ConversationProfiles
675
+ if transport == :rest
676
+ return false unless service_module.const_defined? :Rest
677
+ service_module = service_module.const_get :Rest
678
+ end
679
+ service_module.const_defined? :Client
680
+ rescue ::LoadError
681
+ false
682
+ end
683
+
360
684
  ##
361
685
  # Create a new client object for Generators.
362
686
  #
@@ -370,6 +694,11 @@ module Google
370
694
  # You can also specify a different transport by passing `:rest` or `:grpc` in
371
695
  # the `transport` parameter.
372
696
  #
697
+ # Raises an exception if the currently installed versioned client gem for the
698
+ # given API version does not support the given transport of the Generators service.
699
+ # You can determine whether the method will succeed by calling
700
+ # {Google::Cloud::Dialogflow.generators_available?}.
701
+ #
373
702
  # ## About Generators
374
703
  #
375
704
  # Generator Service for LLM powered Agent Assist. This service manages the
@@ -395,6 +724,37 @@ module Google
395
724
  service_module.const_get(:Client).new(&block)
396
725
  end
397
726
 
727
+ ##
728
+ # Determines whether the Generators service is supported by the current client.
729
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.generators}.
730
+ # If false, that method will raise an exception. This could happen if the given
731
+ # API version does not exist or does not support the Generators service,
732
+ # or if the versioned client gem needs an update to support the Generators service.
733
+ #
734
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
735
+ # Defaults to `:v2`.
736
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
737
+ # @return [boolean] Whether the service is available.
738
+ #
739
+ def self.generators_available? version: :v2, transport: :grpc
740
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
741
+ package_name = Google::Cloud::Dialogflow
742
+ .constants
743
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
744
+ .first
745
+ return false unless package_name
746
+ service_module = Google::Cloud::Dialogflow.const_get package_name
747
+ return false unless service_module.const_defined? :Generators
748
+ service_module = service_module.const_get :Generators
749
+ if transport == :rest
750
+ return false unless service_module.const_defined? :Rest
751
+ service_module = service_module.const_get :Rest
752
+ end
753
+ service_module.const_defined? :Client
754
+ rescue ::LoadError
755
+ false
756
+ end
757
+
398
758
  ##
399
759
  # Create a new client object for Conversations.
400
760
  #
@@ -408,6 +768,11 @@ module Google
408
768
  # You can also specify a different transport by passing `:rest` or `:grpc` in
409
769
  # the `transport` parameter.
410
770
  #
771
+ # Raises an exception if the currently installed versioned client gem for the
772
+ # given API version does not support the given transport of the Conversations service.
773
+ # You can determine whether the method will succeed by calling
774
+ # {Google::Cloud::Dialogflow.conversations_available?}.
775
+ #
411
776
  # ## About Conversations
412
777
  #
413
778
  # Service for managing
@@ -430,6 +795,37 @@ module Google
430
795
  service_module.const_get(:Client).new(&block)
431
796
  end
432
797
 
798
+ ##
799
+ # Determines whether the Conversations service is supported by the current client.
800
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.conversations}.
801
+ # If false, that method will raise an exception. This could happen if the given
802
+ # API version does not exist or does not support the Conversations service,
803
+ # or if the versioned client gem needs an update to support the Conversations service.
804
+ #
805
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
806
+ # Defaults to `:v2`.
807
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
808
+ # @return [boolean] Whether the service is available.
809
+ #
810
+ def self.conversations_available? version: :v2, transport: :grpc
811
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
812
+ package_name = Google::Cloud::Dialogflow
813
+ .constants
814
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
815
+ .first
816
+ return false unless package_name
817
+ service_module = Google::Cloud::Dialogflow.const_get package_name
818
+ return false unless service_module.const_defined? :Conversations
819
+ service_module = service_module.const_get :Conversations
820
+ if transport == :rest
821
+ return false unless service_module.const_defined? :Rest
822
+ service_module = service_module.const_get :Rest
823
+ end
824
+ service_module.const_defined? :Client
825
+ rescue ::LoadError
826
+ false
827
+ end
828
+
433
829
  ##
434
830
  # Create a new client object for ConversationDatasets.
435
831
  #
@@ -443,6 +839,11 @@ module Google
443
839
  # You can also specify a different transport by passing `:rest` or `:grpc` in
444
840
  # the `transport` parameter.
445
841
  #
842
+ # Raises an exception if the currently installed versioned client gem for the
843
+ # given API version does not support the given transport of the ConversationDatasets service.
844
+ # You can determine whether the method will succeed by calling
845
+ # {Google::Cloud::Dialogflow.conversation_datasets_available?}.
846
+ #
446
847
  # ## About ConversationDatasets
447
848
  #
448
849
  # Conversation datasets.
@@ -467,6 +868,37 @@ module Google
467
868
  service_module.const_get(:Client).new(&block)
468
869
  end
469
870
 
871
+ ##
872
+ # Determines whether the ConversationDatasets service is supported by the current client.
873
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.conversation_datasets}.
874
+ # If false, that method will raise an exception. This could happen if the given
875
+ # API version does not exist or does not support the ConversationDatasets service,
876
+ # or if the versioned client gem needs an update to support the ConversationDatasets service.
877
+ #
878
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
879
+ # Defaults to `:v2`.
880
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
881
+ # @return [boolean] Whether the service is available.
882
+ #
883
+ def self.conversation_datasets_available? version: :v2, transport: :grpc
884
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
885
+ package_name = Google::Cloud::Dialogflow
886
+ .constants
887
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
888
+ .first
889
+ return false unless package_name
890
+ service_module = Google::Cloud::Dialogflow.const_get package_name
891
+ return false unless service_module.const_defined? :ConversationDatasets
892
+ service_module = service_module.const_get :ConversationDatasets
893
+ if transport == :rest
894
+ return false unless service_module.const_defined? :Rest
895
+ service_module = service_module.const_get :Rest
896
+ end
897
+ service_module.const_defined? :Client
898
+ rescue ::LoadError
899
+ false
900
+ end
901
+
470
902
  ##
471
903
  # Create a new client object for ConversationModels.
472
904
  #
@@ -480,6 +912,11 @@ module Google
480
912
  # You can also specify a different transport by passing `:rest` or `:grpc` in
481
913
  # the `transport` parameter.
482
914
  #
915
+ # Raises an exception if the currently installed versioned client gem for the
916
+ # given API version does not support the given transport of the ConversationModels service.
917
+ # You can determine whether the method will succeed by calling
918
+ # {Google::Cloud::Dialogflow.conversation_models_available?}.
919
+ #
483
920
  # ## About ConversationModels
484
921
  #
485
922
  # Manages a collection of models for human agent assistant.
@@ -501,6 +938,37 @@ module Google
501
938
  service_module.const_get(:Client).new(&block)
502
939
  end
503
940
 
941
+ ##
942
+ # Determines whether the ConversationModels service is supported by the current client.
943
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.conversation_models}.
944
+ # If false, that method will raise an exception. This could happen if the given
945
+ # API version does not exist or does not support the ConversationModels service,
946
+ # or if the versioned client gem needs an update to support the ConversationModels service.
947
+ #
948
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
949
+ # Defaults to `:v2`.
950
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
951
+ # @return [boolean] Whether the service is available.
952
+ #
953
+ def self.conversation_models_available? version: :v2, transport: :grpc
954
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
955
+ package_name = Google::Cloud::Dialogflow
956
+ .constants
957
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
958
+ .first
959
+ return false unless package_name
960
+ service_module = Google::Cloud::Dialogflow.const_get package_name
961
+ return false unless service_module.const_defined? :ConversationModels
962
+ service_module = service_module.const_get :ConversationModels
963
+ if transport == :rest
964
+ return false unless service_module.const_defined? :Rest
965
+ service_module = service_module.const_get :Rest
966
+ end
967
+ service_module.const_defined? :Client
968
+ rescue ::LoadError
969
+ false
970
+ end
971
+
504
972
  ##
505
973
  # Create a new client object for Documents.
506
974
  #
@@ -514,6 +982,11 @@ module Google
514
982
  # You can also specify a different transport by passing `:rest` or `:grpc` in
515
983
  # the `transport` parameter.
516
984
  #
985
+ # Raises an exception if the currently installed versioned client gem for the
986
+ # given API version does not support the given transport of the Documents service.
987
+ # You can determine whether the method will succeed by calling
988
+ # {Google::Cloud::Dialogflow.documents_available?}.
989
+ #
517
990
  # ## About Documents
518
991
  #
519
992
  # Service for managing knowledge
@@ -536,6 +1009,37 @@ module Google
536
1009
  service_module.const_get(:Client).new(&block)
537
1010
  end
538
1011
 
1012
+ ##
1013
+ # Determines whether the Documents service is supported by the current client.
1014
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.documents}.
1015
+ # If false, that method will raise an exception. This could happen if the given
1016
+ # API version does not exist or does not support the Documents service,
1017
+ # or if the versioned client gem needs an update to support the Documents service.
1018
+ #
1019
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1020
+ # Defaults to `:v2`.
1021
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1022
+ # @return [boolean] Whether the service is available.
1023
+ #
1024
+ def self.documents_available? version: :v2, transport: :grpc
1025
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
1026
+ package_name = Google::Cloud::Dialogflow
1027
+ .constants
1028
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1029
+ .first
1030
+ return false unless package_name
1031
+ service_module = Google::Cloud::Dialogflow.const_get package_name
1032
+ return false unless service_module.const_defined? :Documents
1033
+ service_module = service_module.const_get :Documents
1034
+ if transport == :rest
1035
+ return false unless service_module.const_defined? :Rest
1036
+ service_module = service_module.const_get :Rest
1037
+ end
1038
+ service_module.const_defined? :Client
1039
+ rescue ::LoadError
1040
+ false
1041
+ end
1042
+
539
1043
  ##
540
1044
  # Create a new client object for EncryptionSpecService.
541
1045
  #
@@ -549,6 +1053,11 @@ module Google
549
1053
  # You can also specify a different transport by passing `:rest` or `:grpc` in
550
1054
  # the `transport` parameter.
551
1055
  #
1056
+ # Raises an exception if the currently installed versioned client gem for the
1057
+ # given API version does not support the given transport of the EncryptionSpecService service.
1058
+ # You can determine whether the method will succeed by calling
1059
+ # {Google::Cloud::Dialogflow.encryption_spec_service_available?}.
1060
+ #
552
1061
  # ## About EncryptionSpecService
553
1062
  #
554
1063
  # Manages encryption spec settings for Dialogflow and Agent Assist.
@@ -570,6 +1079,37 @@ module Google
570
1079
  service_module.const_get(:Client).new(&block)
571
1080
  end
572
1081
 
1082
+ ##
1083
+ # Determines whether the EncryptionSpecService service is supported by the current client.
1084
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.encryption_spec_service}.
1085
+ # If false, that method will raise an exception. This could happen if the given
1086
+ # API version does not exist or does not support the EncryptionSpecService service,
1087
+ # or if the versioned client gem needs an update to support the EncryptionSpecService service.
1088
+ #
1089
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1090
+ # Defaults to `:v2`.
1091
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1092
+ # @return [boolean] Whether the service is available.
1093
+ #
1094
+ def self.encryption_spec_service_available? version: :v2, transport: :grpc
1095
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
1096
+ package_name = Google::Cloud::Dialogflow
1097
+ .constants
1098
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1099
+ .first
1100
+ return false unless package_name
1101
+ service_module = Google::Cloud::Dialogflow.const_get package_name
1102
+ return false unless service_module.const_defined? :EncryptionSpecService
1103
+ service_module = service_module.const_get :EncryptionSpecService
1104
+ if transport == :rest
1105
+ return false unless service_module.const_defined? :Rest
1106
+ service_module = service_module.const_get :Rest
1107
+ end
1108
+ service_module.const_defined? :Client
1109
+ rescue ::LoadError
1110
+ false
1111
+ end
1112
+
573
1113
  ##
574
1114
  # Create a new client object for Fulfillments.
575
1115
  #
@@ -583,6 +1123,11 @@ module Google
583
1123
  # You can also specify a different transport by passing `:rest` or `:grpc` in
584
1124
  # the `transport` parameter.
585
1125
  #
1126
+ # Raises an exception if the currently installed versioned client gem for the
1127
+ # given API version does not support the given transport of the Fulfillments service.
1128
+ # You can determine whether the method will succeed by calling
1129
+ # {Google::Cloud::Dialogflow.fulfillments_available?}.
1130
+ #
586
1131
  # ## About Fulfillments
587
1132
  #
588
1133
  # Service for managing Fulfillments.
@@ -604,6 +1149,37 @@ module Google
604
1149
  service_module.const_get(:Client).new(&block)
605
1150
  end
606
1151
 
1152
+ ##
1153
+ # Determines whether the Fulfillments service is supported by the current client.
1154
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.fulfillments}.
1155
+ # If false, that method will raise an exception. This could happen if the given
1156
+ # API version does not exist or does not support the Fulfillments service,
1157
+ # or if the versioned client gem needs an update to support the Fulfillments service.
1158
+ #
1159
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1160
+ # Defaults to `:v2`.
1161
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1162
+ # @return [boolean] Whether the service is available.
1163
+ #
1164
+ def self.fulfillments_available? version: :v2, transport: :grpc
1165
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
1166
+ package_name = Google::Cloud::Dialogflow
1167
+ .constants
1168
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1169
+ .first
1170
+ return false unless package_name
1171
+ service_module = Google::Cloud::Dialogflow.const_get package_name
1172
+ return false unless service_module.const_defined? :Fulfillments
1173
+ service_module = service_module.const_get :Fulfillments
1174
+ if transport == :rest
1175
+ return false unless service_module.const_defined? :Rest
1176
+ service_module = service_module.const_get :Rest
1177
+ end
1178
+ service_module.const_defined? :Client
1179
+ rescue ::LoadError
1180
+ false
1181
+ end
1182
+
607
1183
  ##
608
1184
  # Create a new client object for Environments.
609
1185
  #
@@ -617,6 +1193,11 @@ module Google
617
1193
  # You can also specify a different transport by passing `:rest` or `:grpc` in
618
1194
  # the `transport` parameter.
619
1195
  #
1196
+ # Raises an exception if the currently installed versioned client gem for the
1197
+ # given API version does not support the given transport of the Environments service.
1198
+ # You can determine whether the method will succeed by calling
1199
+ # {Google::Cloud::Dialogflow.environments_available?}.
1200
+ #
620
1201
  # ## About Environments
621
1202
  #
622
1203
  # Service for managing Environments.
@@ -638,6 +1219,37 @@ module Google
638
1219
  service_module.const_get(:Client).new(&block)
639
1220
  end
640
1221
 
1222
+ ##
1223
+ # Determines whether the Environments service is supported by the current client.
1224
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.environments}.
1225
+ # If false, that method will raise an exception. This could happen if the given
1226
+ # API version does not exist or does not support the Environments service,
1227
+ # or if the versioned client gem needs an update to support the Environments service.
1228
+ #
1229
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1230
+ # Defaults to `:v2`.
1231
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1232
+ # @return [boolean] Whether the service is available.
1233
+ #
1234
+ def self.environments_available? version: :v2, transport: :grpc
1235
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
1236
+ package_name = Google::Cloud::Dialogflow
1237
+ .constants
1238
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1239
+ .first
1240
+ return false unless package_name
1241
+ service_module = Google::Cloud::Dialogflow.const_get package_name
1242
+ return false unless service_module.const_defined? :Environments
1243
+ service_module = service_module.const_get :Environments
1244
+ if transport == :rest
1245
+ return false unless service_module.const_defined? :Rest
1246
+ service_module = service_module.const_get :Rest
1247
+ end
1248
+ service_module.const_defined? :Client
1249
+ rescue ::LoadError
1250
+ false
1251
+ end
1252
+
641
1253
  ##
642
1254
  # Create a new client object for KnowledgeBases.
643
1255
  #
@@ -651,6 +1263,11 @@ module Google
651
1263
  # You can also specify a different transport by passing `:rest` or `:grpc` in
652
1264
  # the `transport` parameter.
653
1265
  #
1266
+ # Raises an exception if the currently installed versioned client gem for the
1267
+ # given API version does not support the given transport of the KnowledgeBases service.
1268
+ # You can determine whether the method will succeed by calling
1269
+ # {Google::Cloud::Dialogflow.knowledge_bases_available?}.
1270
+ #
654
1271
  # ## About KnowledgeBases
655
1272
  #
656
1273
  # Service for managing
@@ -673,6 +1290,37 @@ module Google
673
1290
  service_module.const_get(:Client).new(&block)
674
1291
  end
675
1292
 
1293
+ ##
1294
+ # Determines whether the KnowledgeBases service is supported by the current client.
1295
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.knowledge_bases}.
1296
+ # If false, that method will raise an exception. This could happen if the given
1297
+ # API version does not exist or does not support the KnowledgeBases service,
1298
+ # or if the versioned client gem needs an update to support the KnowledgeBases service.
1299
+ #
1300
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1301
+ # Defaults to `:v2`.
1302
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1303
+ # @return [boolean] Whether the service is available.
1304
+ #
1305
+ def self.knowledge_bases_available? version: :v2, transport: :grpc
1306
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
1307
+ package_name = Google::Cloud::Dialogflow
1308
+ .constants
1309
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1310
+ .first
1311
+ return false unless package_name
1312
+ service_module = Google::Cloud::Dialogflow.const_get package_name
1313
+ return false unless service_module.const_defined? :KnowledgeBases
1314
+ service_module = service_module.const_get :KnowledgeBases
1315
+ if transport == :rest
1316
+ return false unless service_module.const_defined? :Rest
1317
+ service_module = service_module.const_get :Rest
1318
+ end
1319
+ service_module.const_defined? :Client
1320
+ rescue ::LoadError
1321
+ false
1322
+ end
1323
+
676
1324
  ##
677
1325
  # Create a new client object for Versions.
678
1326
  #
@@ -686,6 +1334,11 @@ module Google
686
1334
  # You can also specify a different transport by passing `:rest` or `:grpc` in
687
1335
  # the `transport` parameter.
688
1336
  #
1337
+ # Raises an exception if the currently installed versioned client gem for the
1338
+ # given API version does not support the given transport of the Versions service.
1339
+ # You can determine whether the method will succeed by calling
1340
+ # {Google::Cloud::Dialogflow.versions_available?}.
1341
+ #
689
1342
  # ## About Versions
690
1343
  #
691
1344
  # Service for managing Versions.
@@ -707,6 +1360,37 @@ module Google
707
1360
  service_module.const_get(:Client).new(&block)
708
1361
  end
709
1362
 
1363
+ ##
1364
+ # Determines whether the Versions service is supported by the current client.
1365
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.versions}.
1366
+ # If false, that method will raise an exception. This could happen if the given
1367
+ # API version does not exist or does not support the Versions service,
1368
+ # or if the versioned client gem needs an update to support the Versions service.
1369
+ #
1370
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1371
+ # Defaults to `:v2`.
1372
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1373
+ # @return [boolean] Whether the service is available.
1374
+ #
1375
+ def self.versions_available? version: :v2, transport: :grpc
1376
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
1377
+ package_name = Google::Cloud::Dialogflow
1378
+ .constants
1379
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1380
+ .first
1381
+ return false unless package_name
1382
+ service_module = Google::Cloud::Dialogflow.const_get package_name
1383
+ return false unless service_module.const_defined? :Versions
1384
+ service_module = service_module.const_get :Versions
1385
+ if transport == :rest
1386
+ return false unless service_module.const_defined? :Rest
1387
+ service_module = service_module.const_get :Rest
1388
+ end
1389
+ service_module.const_defined? :Client
1390
+ rescue ::LoadError
1391
+ false
1392
+ end
1393
+
710
1394
  ##
711
1395
  # Configure the google-cloud-dialogflow library.
712
1396
  #
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-08-09 00:00:00.000000000 Z
10
+ date: 2025-01-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-cloud-core
@@ -67,7 +66,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
67
66
  licenses:
68
67
  - Apache-2.0
69
68
  metadata: {}
70
- post_install_message:
71
69
  rdoc_options: []
72
70
  require_paths:
73
71
  - lib
@@ -75,15 +73,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
73
  requirements:
76
74
  - - ">="
77
75
  - !ruby/object:Gem::Version
78
- version: '2.7'
76
+ version: '3.0'
79
77
  required_rubygems_version: !ruby/object:Gem::Requirement
80
78
  requirements:
81
79
  - - ">="
82
80
  - !ruby/object:Gem::Version
83
81
  version: '0'
84
82
  requirements: []
85
- rubygems_version: 3.5.6
86
- signing_key:
83
+ rubygems_version: 3.6.2
87
84
  specification_version: 4
88
85
  summary: API Client library for the Dialogflow API
89
86
  test_files: []