google-cloud-dialogflow 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/version.rb +1 -1
- data/lib/google/cloud/dialogflow.rb +72 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0b56a5694d74e2e140149ab5006f9ecdbd2378036ccaab268501f01ac591a63
|
4
|
+
data.tar.gz: bc41cc282e5b0c935355185eae4b23be6a1ae48f3bf7602c0deb6d3486b7c927
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05baaacd8fccd99afd229b7d19be39751ab80dc7e34721d0d82dab84aaf5e36c8e3070f07fea5cdf047fe7b1cb5382af04dce2d71c07c1da82cd92a491d71582
|
7
|
+
data.tar.gz: bb7f88f85ea88d724fd76526295a485c19aaa0876e300b2cd66d07ff9b9b832e3af616ec1aaf9e02a216b630c349566bb11cc70be44c4d56ed64c2b82967d4ce
|
@@ -357,6 +357,44 @@ module Google
|
|
357
357
|
service_module.const_get(:Client).new(&block)
|
358
358
|
end
|
359
359
|
|
360
|
+
##
|
361
|
+
# Create a new client object for Generators.
|
362
|
+
#
|
363
|
+
# By default, this returns an instance of
|
364
|
+
# [Google::Cloud::Dialogflow::V2::Generators::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-Generators-Client)
|
365
|
+
# for a gRPC client for version V2 of the API.
|
366
|
+
# However, you can specify a different API version by passing it in the
|
367
|
+
# `version` parameter. If the Generators service is
|
368
|
+
# supported by that API version, and the corresponding gem is available, the
|
369
|
+
# appropriate versioned client will be returned.
|
370
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
371
|
+
# the `transport` parameter.
|
372
|
+
#
|
373
|
+
# ## About Generators
|
374
|
+
#
|
375
|
+
# Generator Service for LLM powered Agent Assist. This service manages the
|
376
|
+
# configurations of user owned Generators, such as description, context and
|
377
|
+
# instruction, input/output format, etc. The generator resources will be used
|
378
|
+
# inside a conversation and will be triggered by TriggerEvent to query LLM for
|
379
|
+
# answers.
|
380
|
+
#
|
381
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
382
|
+
# Defaults to `:v2`.
|
383
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
384
|
+
# @return [::Object] A client object for the specified version.
|
385
|
+
#
|
386
|
+
def self.generators version: :v2, transport: :grpc, &block
|
387
|
+
require "google/cloud/dialogflow/#{version.to_s.downcase}"
|
388
|
+
|
389
|
+
package_name = Google::Cloud::Dialogflow
|
390
|
+
.constants
|
391
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
392
|
+
.first
|
393
|
+
service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:Generators)
|
394
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
395
|
+
service_module.const_get(:Client).new(&block)
|
396
|
+
end
|
397
|
+
|
360
398
|
##
|
361
399
|
# Create a new client object for Conversations.
|
362
400
|
#
|
@@ -498,6 +536,40 @@ module Google
|
|
498
536
|
service_module.const_get(:Client).new(&block)
|
499
537
|
end
|
500
538
|
|
539
|
+
##
|
540
|
+
# Create a new client object for EncryptionSpecService.
|
541
|
+
#
|
542
|
+
# By default, this returns an instance of
|
543
|
+
# [Google::Cloud::Dialogflow::V2::EncryptionSpecService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-EncryptionSpecService-Client)
|
544
|
+
# for a gRPC client for version V2 of the API.
|
545
|
+
# However, you can specify a different API version by passing it in the
|
546
|
+
# `version` parameter. If the EncryptionSpecService service is
|
547
|
+
# supported by that API version, and the corresponding gem is available, the
|
548
|
+
# appropriate versioned client will be returned.
|
549
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
550
|
+
# the `transport` parameter.
|
551
|
+
#
|
552
|
+
# ## About EncryptionSpecService
|
553
|
+
#
|
554
|
+
# Manages encryption spec settings for Dialogflow and Agent Assist.
|
555
|
+
#
|
556
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
557
|
+
# Defaults to `:v2`.
|
558
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
559
|
+
# @return [::Object] A client object for the specified version.
|
560
|
+
#
|
561
|
+
def self.encryption_spec_service version: :v2, transport: :grpc, &block
|
562
|
+
require "google/cloud/dialogflow/#{version.to_s.downcase}"
|
563
|
+
|
564
|
+
package_name = Google::Cloud::Dialogflow
|
565
|
+
.constants
|
566
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
567
|
+
.first
|
568
|
+
service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:EncryptionSpecService)
|
569
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
570
|
+
service_module.const_get(:Client).new(&block)
|
571
|
+
end
|
572
|
+
|
501
573
|
##
|
502
574
|
# Create a new client object for Fulfillments.
|
503
575
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dialogflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|