google-cloud-dialogflow 1.11.3 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b95da7e779be78cea4746ab9057aaa5febe66509e3449f49432d13cee0fce55
4
- data.tar.gz: 91013e3aa7c6a6b223bc89054edb699b4ab9cd5f4bafc2f73d6ed6072d2de56d
3
+ metadata.gz: 581a7846dd636934872cf1eef3f9da51216858c1e98f842342bfe0d59e93dd29
4
+ data.tar.gz: 27f7eb887881bc9b3088820d5e9d099d265f4ddc395c4aeb847528c4503d2830
5
5
  SHA512:
6
- metadata.gz: 3e9287c71dae993ec2fdaa2da434fd91c713e801a6ed5360e6f933883c402752b00b0a46140228377df5cf4bcaec4d668fa3d8ba708cf4e416c8a0e71d276c7a
7
- data.tar.gz: b332cd88b897c58c256a4893974772a8f8c324409421f7b19dd8ddbdca12d8a5caa4154065d358c2eee0d0c7fed93e172cb004f924f012fc8ba411648e9a6c3d
6
+ metadata.gz: 92404436873e7e5f15658186559ae93e6880379aa3e84a5b32f506a379ced096105bef6c37fabe011b0850834872fe1e7183ac9702779e433b49eebe4de89a46
7
+ data.tar.gz: afde3571e8fd55858d180b866b7edc9e5f7d3dc010861ce42aa82eee7d9763efcfef7ab548af224e910c05cbd8da0823b004057e97f2032a4d96a4979801d1ce
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Dialogflow
19
- VERSION = "1.11.3".freeze
19
+ VERSION = "1.12.0".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -1250,6 +1250,76 @@ module Google
1250
1250
  false
1251
1251
  end
1252
1252
 
1253
+ ##
1254
+ # Create a new client object for GeneratorEvaluations.
1255
+ #
1256
+ # By default, this returns an instance of
1257
+ # [Google::Cloud::Dialogflow::V2::GeneratorEvaluations::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-GeneratorEvaluations-Client)
1258
+ # for a gRPC client for version V2 of the API.
1259
+ # However, you can specify a different API version by passing it in the
1260
+ # `version` parameter. If the GeneratorEvaluations service is
1261
+ # supported by that API version, and the corresponding gem is available, the
1262
+ # appropriate versioned client will be returned.
1263
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
1264
+ # the `transport` parameter.
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 GeneratorEvaluations service.
1268
+ # You can determine whether the method will succeed by calling
1269
+ # {Google::Cloud::Dialogflow.generator_evaluations_available?}.
1270
+ #
1271
+ # ## About GeneratorEvaluations
1272
+ #
1273
+ # Service for managing generator evaluations.
1274
+ #
1275
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1276
+ # Defaults to `:v2`.
1277
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1278
+ # @return [::Object] A client object for the specified version.
1279
+ #
1280
+ def self.generator_evaluations version: :v2, transport: :grpc, &block
1281
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
1282
+
1283
+ package_name = Google::Cloud::Dialogflow
1284
+ .constants
1285
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1286
+ .first
1287
+ service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:GeneratorEvaluations)
1288
+ service_module = service_module.const_get(:Rest) if transport == :rest
1289
+ service_module.const_get(:Client).new(&block)
1290
+ end
1291
+
1292
+ ##
1293
+ # Determines whether the GeneratorEvaluations service is supported by the current client.
1294
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.generator_evaluations}.
1295
+ # If false, that method will raise an exception. This could happen if the given
1296
+ # API version does not exist or does not support the GeneratorEvaluations service,
1297
+ # or if the versioned client gem needs an update to support the GeneratorEvaluations service.
1298
+ #
1299
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1300
+ # Defaults to `:v2`.
1301
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1302
+ # @return [boolean] Whether the service is available.
1303
+ #
1304
+ def self.generator_evaluations_available? version: :v2, transport: :grpc
1305
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
1306
+ package_name = Google::Cloud::Dialogflow
1307
+ .constants
1308
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1309
+ .first
1310
+ return false unless package_name
1311
+ service_module = Google::Cloud::Dialogflow.const_get package_name
1312
+ return false unless service_module.const_defined? :GeneratorEvaluations
1313
+ service_module = service_module.const_get :GeneratorEvaluations
1314
+ if transport == :rest
1315
+ return false unless service_module.const_defined? :Rest
1316
+ service_module = service_module.const_get :Rest
1317
+ end
1318
+ service_module.const_defined? :Client
1319
+ rescue ::LoadError
1320
+ false
1321
+ end
1322
+
1253
1323
  ##
1254
1324
  # Create a new client object for KnowledgeBases.
1255
1325
  #
@@ -1321,6 +1391,148 @@ module Google
1321
1391
  false
1322
1392
  end
1323
1393
 
1394
+ ##
1395
+ # Create a new client object for SipTrunks.
1396
+ #
1397
+ # By default, this returns an instance of
1398
+ # [Google::Cloud::Dialogflow::V2::SipTrunks::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-SipTrunks-Client)
1399
+ # for a gRPC client for version V2 of the API.
1400
+ # However, you can specify a different API version by passing it in the
1401
+ # `version` parameter. If the SipTrunks service is
1402
+ # supported by that API version, and the corresponding gem is available, the
1403
+ # appropriate versioned client will be returned.
1404
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
1405
+ # the `transport` parameter.
1406
+ #
1407
+ # Raises an exception if the currently installed versioned client gem for the
1408
+ # given API version does not support the given transport of the SipTrunks service.
1409
+ # You can determine whether the method will succeed by calling
1410
+ # {Google::Cloud::Dialogflow.sip_trunks_available?}.
1411
+ #
1412
+ # ## About SipTrunks
1413
+ #
1414
+ # Service for managing SipTrunks.
1415
+ #
1416
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1417
+ # Defaults to `:v2`.
1418
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1419
+ # @return [::Object] A client object for the specified version.
1420
+ #
1421
+ def self.sip_trunks version: :v2, transport: :grpc, &block
1422
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
1423
+
1424
+ package_name = Google::Cloud::Dialogflow
1425
+ .constants
1426
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1427
+ .first
1428
+ service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:SipTrunks)
1429
+ service_module = service_module.const_get(:Rest) if transport == :rest
1430
+ service_module.const_get(:Client).new(&block)
1431
+ end
1432
+
1433
+ ##
1434
+ # Determines whether the SipTrunks service is supported by the current client.
1435
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.sip_trunks}.
1436
+ # If false, that method will raise an exception. This could happen if the given
1437
+ # API version does not exist or does not support the SipTrunks service,
1438
+ # or if the versioned client gem needs an update to support the SipTrunks service.
1439
+ #
1440
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1441
+ # Defaults to `:v2`.
1442
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1443
+ # @return [boolean] Whether the service is available.
1444
+ #
1445
+ def self.sip_trunks_available? version: :v2, transport: :grpc
1446
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
1447
+ package_name = Google::Cloud::Dialogflow
1448
+ .constants
1449
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1450
+ .first
1451
+ return false unless package_name
1452
+ service_module = Google::Cloud::Dialogflow.const_get package_name
1453
+ return false unless service_module.const_defined? :SipTrunks
1454
+ service_module = service_module.const_get :SipTrunks
1455
+ if transport == :rest
1456
+ return false unless service_module.const_defined? :Rest
1457
+ service_module = service_module.const_get :Rest
1458
+ end
1459
+ service_module.const_defined? :Client
1460
+ rescue ::LoadError
1461
+ false
1462
+ end
1463
+
1464
+ ##
1465
+ # Create a new client object for Tools.
1466
+ #
1467
+ # By default, this returns an instance of
1468
+ # [Google::Cloud::Dialogflow::V2::Tools::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-Tools-Client)
1469
+ # for a gRPC client for version V2 of the API.
1470
+ # However, you can specify a different API version by passing it in the
1471
+ # `version` parameter. If the Tools service is
1472
+ # supported by that API version, and the corresponding gem is available, the
1473
+ # appropriate versioned client will be returned.
1474
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
1475
+ # the `transport` parameter.
1476
+ #
1477
+ # Raises an exception if the currently installed versioned client gem for the
1478
+ # given API version does not support the given transport of the Tools service.
1479
+ # You can determine whether the method will succeed by calling
1480
+ # {Google::Cloud::Dialogflow.tools_available?}.
1481
+ #
1482
+ # ## About Tools
1483
+ #
1484
+ # Tool Service for LLM powered Agent Assist. Tools can be used to interact with
1485
+ # remote APIs (e.g. fetching orders) to retrieve additional information as
1486
+ # input to LLM.
1487
+ #
1488
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1489
+ # Defaults to `:v2`.
1490
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1491
+ # @return [::Object] A client object for the specified version.
1492
+ #
1493
+ def self.tools version: :v2, transport: :grpc, &block
1494
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
1495
+
1496
+ package_name = Google::Cloud::Dialogflow
1497
+ .constants
1498
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1499
+ .first
1500
+ service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:Tools)
1501
+ service_module = service_module.const_get(:Rest) if transport == :rest
1502
+ service_module.const_get(:Client).new(&block)
1503
+ end
1504
+
1505
+ ##
1506
+ # Determines whether the Tools service is supported by the current client.
1507
+ # If true, you can retrieve a client object by calling {Google::Cloud::Dialogflow.tools}.
1508
+ # If false, that method will raise an exception. This could happen if the given
1509
+ # API version does not exist or does not support the Tools service,
1510
+ # or if the versioned client gem needs an update to support the Tools service.
1511
+ #
1512
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1513
+ # Defaults to `:v2`.
1514
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1515
+ # @return [boolean] Whether the service is available.
1516
+ #
1517
+ def self.tools_available? version: :v2, transport: :grpc
1518
+ require "google/cloud/dialogflow/#{version.to_s.downcase}"
1519
+ package_name = Google::Cloud::Dialogflow
1520
+ .constants
1521
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1522
+ .first
1523
+ return false unless package_name
1524
+ service_module = Google::Cloud::Dialogflow.const_get package_name
1525
+ return false unless service_module.const_defined? :Tools
1526
+ service_module = service_module.const_get :Tools
1527
+ if transport == :rest
1528
+ return false unless service_module.const_defined? :Rest
1529
+ service_module = service_module.const_get :Rest
1530
+ end
1531
+ service_module.const_defined? :Client
1532
+ rescue ::LoadError
1533
+ false
1534
+ end
1535
+
1324
1536
  ##
1325
1537
  # Create a new client object for Versions.
1326
1538
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.3
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC